From 73c0a9daaf2012eac72b127ea9d1287a995405b5 Mon Sep 17 00:00:00 2001 From: Rob Wormald Date: Mon, 15 Aug 2016 00:39:59 -0700 Subject: [PATCH] fix(router): make routerLinkActiveOptions public (#10758) --- modules/@angular/router/src/directives/router_link_active.ts | 2 +- tools/public_api_guard/router/index.d.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/@angular/router/src/directives/router_link_active.ts b/modules/@angular/router/src/directives/router_link_active.ts index d5a35373c0..ff314640c9 100644 --- a/modules/@angular/router/src/directives/router_link_active.ts +++ b/modules/@angular/router/src/directives/router_link_active.ts @@ -66,7 +66,7 @@ export class RouterLinkActive implements OnChanges, OnDestroy, AfterContentInit private classes: string[] = []; private subscription: Subscription; - @Input() private routerLinkActiveOptions: {exact: boolean} = {exact: false}; + @Input() routerLinkActiveOptions: {exact: boolean} = {exact: false}; constructor(private router: Router, private element: ElementRef, private renderer: Renderer) { this.subscription = router.events.subscribe(s => { diff --git a/tools/public_api_guard/router/index.d.ts b/tools/public_api_guard/router/index.d.ts index f6afd7b843..3d37d00660 100644 --- a/tools/public_api_guard/router/index.d.ts +++ b/tools/public_api_guard/router/index.d.ts @@ -210,6 +210,9 @@ export declare class RouterLinkActive implements OnChanges, OnDestroy, AfterCont links: QueryList; linksWithHrefs: QueryList; routerLinkActive: string[] | string; + routerLinkActiveOptions: { + exact: boolean; + }; constructor(router: Router, element: ElementRef, renderer: Renderer); ngAfterContentInit(): void; ngOnChanges(changes: {}): any;