Using HTML anchor link fragment in Angular 6

Angular 6.1 comes with an option called anchorScrolling that lives in router module’s ExtraOptions. As the anchorScrolling definition says: Configures if the router should scroll to the element when the url has a fragment. ‘disabled’ — does nothing (default). ‘enabled’ — scrolls to the element. This option will be the default in the future. Anchor … Read more

Using HTML anchor link #id in Angular 6

Angular 6.1 comes with an option called anchorScrolling that lives in router module’s ExtraOptions. As the anchorScrolling definition says: Configures if the router should scroll to the element when the url has a fragment. ‘disabled’ — does nothing (default). ‘enabled’ — scrolls to the element. This option will be the default in the future. Anchor … Read more