angular [routerlink]

JavaScript
      
        content_copy
      
      <a [routerLink]="['/user/bob']" [queryParams]="{debug: true}" fragment="education">
  link to user component
</a>
    
Source

Also in JavaScript: