2015-07-27 22:12:30 -07:00
p.location-badge.
exported from <a href='../router'>angular2/router</a>
2015-09-01 13:55:47 -07:00
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.36/modules/angular2/src/router/router_link.ts#L6-L72">angular2/src/router/router_link.ts (line 6)</a>
2015-07-27 22:12:30 -07:00
:markdown
2015-09-01 13:55:47 -07:00
Maps application URLs into application states, to support deep-linking and navigation.
2015-07-28 13:28:47 -07:00
.l-main-section
h2 Annotations
.l-sub-section
h3.annotation Directive
pre.prettyprint
code.
@Directive({
selector: '[router-link]',
properties: ['routeParams: routerLink'],
2015-09-01 13:55:47 -07:00
host: {
'(click)': 'onClick()',
'[attr.href]': 'visibleHref',
'[class.router-link-active]': 'isRouteActive'
}
2015-07-28 13:28:47 -07:00
})
2015-07-27 22:12:30 -07:00
.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
2015-09-01 13:55:47 -07:00
.l-sub-section
h3 isRouteActive
:markdown
2015-07-27 22:12:30 -07:00
.l-sub-section
h3 routeParams
:markdown
.l-sub-section
h3 onClick
pre.prettyprint
code.
onClick()
:markdown