Enabling The Second-Click Of A RouterLink Fragment Using onSameUrlNavigation Reload In Angular 7.1.3

added by JavaScript Kicks
12/14/2018 2:10:27 PM

152 Views

Ben Nadel implements Vasiliy Mazhekin's advice regarding RouterLink fragments and demonstrates that the second-click of a fragment doesn't have to be polyfilled in Angular 7.1.3. Instead, you can just set the "onSameUrlNavigation" option to be "reload". This will re-trigger all the Navigation Events, which is what drives the viewport-scrolling of anchor tags.


0 comments