p.location-badge.
exported from angular2/router
defined in angular2/src/router/router_link.ts (line 6)
:markdown
Maps application URLs into application states, to support deep-linking and navigation.
.l-main-section
h2 Annotations
.l-sub-section
h3.annotation Directive
pre.prettyprint
code.
@Directive({
selector: '[router-link]',
properties: ['routeParams: routerLink'],
host: {
'(click)': 'onClick()',
'[attr.href]': 'visibleHref',
'[class.router-link-active]': 'isRouteActive'
}
})
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
constructor(_router: Router, _location: Location)
:markdown
.l-sub-section
h3 visibleHref
:markdown
.l-sub-section
h3 isRouteActive
:markdown
.l-sub-section
h3 routeParams
:markdown
.l-sub-section
h3 onClick
pre.prettyprint
code.
onClick()
:markdown