angular-cn/public/docs/js/latest/api/router/RouterLink-class.jade

94 lines
1.3 KiB
Plaintext
Raw Normal View History

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: &#39;[router-link]&#39;,
properties: [&#39;routeParams: routerLink&#39;],
host: {
&#39;(click)&#39;: &#39;onClick()&#39;,
&#39;[attr.href]&#39;: &#39;visibleHref&#39;,
&#39;[class.router-link-active]&#39;: &#39;isRouteActive&#39;
}
})
.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