From 31a1118bd3a04a1d58671dff51d335d40d6e48b0 Mon Sep 17 00:00:00 2001 From: anandtiwary <52081890+anandtiwary@users.noreply.github.com> Date: Tue, 31 Aug 2021 10:18:49 -0700 Subject: [PATCH] fixup! feat(router): new output that would notify when link is activated --- .../src/directives/router_link_active.ts | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/packages/router/src/directives/router_link_active.ts b/packages/router/src/directives/router_link_active.ts index 591dc2c731d609..f19619fd95d0fb 100644 --- a/packages/router/src/directives/router_link_active.ts +++ b/packages/router/src/directives/router_link_active.ts @@ -72,16 +72,6 @@ import {RouterLink, RouterLinkWithHref} from './router_link'; * * ``` * - * You can use the output `isActiveChange` to get notified each time the link becomes - * active or inactive. - * - * ``` - * Bob - * ``` - * * @ngModule RouterModule * * @publicApi @@ -109,6 +99,22 @@ export class RouterLinkActive implements OnChanges, OnDestroy, AfterContentInit */ @Input() routerLinkActiveOptions: {exact: boolean}|IsActiveMatchOptions = {exact: false}; + /** + * + * You can use the output `isActiveChange` to get notified each time the link becomes + * active or inactive. + * + * Emits: + * true -> Route is active + * false -> Route is inactive + * + * ``` + * Bob + * ``` + */ @Output() readonly isActiveChange: EventEmitter = new EventEmitter(); constructor(