fix(router): remove private and internal annotations (#9745)

This commit is contained in:
Rob Wormald
2016-06-30 14:47:55 -07:00
committed by GitHub
parent fb2539e1d5
commit dabf214f17
3 changed files with 6 additions and 8 deletions

View File

@ -62,9 +62,6 @@ export class RouterLink {
urlTree: UrlTree;
/**
* @internal
*/
constructor(
private router: Router, private route: ActivatedRoute,
private locationStrategy: LocationStrategy) {}

View File

@ -59,17 +59,14 @@ import {RouterLink, RouterLinkWithHref} from './router_link';
*/
@Directive({selector: '[routerLinkActive]'})
export class RouterLinkActive implements OnChanges, OnDestroy, AfterContentInit {
@ContentChildren(RouterLink) private links: QueryList<RouterLink>;
@ContentChildren(RouterLinkWithHref) private linksWithHrefs: QueryList<RouterLinkWithHref>;
@ContentChildren(RouterLink) links: QueryList<RouterLink>;
@ContentChildren(RouterLinkWithHref) linksWithHrefs: QueryList<RouterLinkWithHref>;
private classes: string[] = [];
private subscription: Subscription;
@Input() private routerLinkActiveOptions: {exact: boolean} = {exact: false};
/**
* @internal
*/
constructor(private router: Router, private element: ElementRef, private renderer: Renderer) {
this.subscription = router.events.subscribe(s => {
if (s instanceof NavigationEnd) {