For example, I use router-link like this:
<li><a [router-link]="['/start']">Start</a></li>
But how can I change the router to /start by typescript?
For example, I use router-link like this:
<li><a [router-link]="['/start']">Start</a></li>
But how can I change the router to /start by typescript?
I believe you're asking how to configure your routes in Angular 2.
2) Use @RouteConfig to setup your routes on a component
Optional: Add a hashbang (#) to your url
Here's an example: