Updated on Kisan Patel
How to build url with #hashtag to routerLink
in Angular?
For Example:
/contact-us#destination
Solution 1:
<a [routerLink]="['/contact-us']" fragment="destination">Jump to 'Test' anchor </a>
Solution 2:
this._router.navigate( ['/contact-us', id ], {fragment: 'destination'});