94 lines
1.3 KiB
Plaintext
94 lines
1.3 KiB
Plaintext
|
|
||
|
p.location-badge.
|
||
|
exported from <a href='../router'>angular2/router</a>
|
||
|
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.37/modules/angular2/src/router/router_link.ts#L6-L72">angular2/src/router/router_link.ts (line 6)</a>
|
||
|
|
||
|
: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
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|