Check out example codes for "ng router link". It will help you in understanding the concepts better.

Code Example 1

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

Learn ReactJs, React Native from akashmittal.com