Polyfilling The Second-Click Of A RouterLink Fragment In Angular 7.1.1

added by JavaScript Kicks
12/2/2018 7:40:24 AM

343 Views

Ben Nadel shares a polyfill for the RouterLink directive in Angular 7.1.1 that enables fragments to work after the first click. This polyfill will scroll the viewport down to the anchor target even if the URL does not change.


0 comments