p.location-badge.
exported from angular2/router
defined in angular2/src/router/router_link.js (line 9)
:markdown
The RouterLink directive lets you link to specific parts of your app.
Consider the following route configuration:
```
@RouteConfig({
path: '/user', component: UserCmp, alias: 'user'
});
class MyComp {}
```
When linking to a route, you can write:
```
link to user component
```
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
constructor(elementRef:ElementRef, router:Router, location:Location)
:markdown
.l-sub-section
h3 onAllChangesDone
pre.prettyprint
code.
onAllChangesDone()
:markdown
.l-sub-section
h3 params
:markdown
.l-sub-section
h3 route
:markdown