Skip to content

Commit

Permalink
fix: add missing takeUntil operator (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylecannon committed Dec 29, 2020
1 parent bcce8d0 commit 102f1b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/angular-routing/src/lib/link-active.directive.ts
Expand Up @@ -62,7 +62,9 @@ export class LinkActive implements AfterContentInit, OnDestroy, OnChanges {
this._activeOptions = this.activeOptions;
}

this.links.changes.subscribe(() => this.collectLinks());
this.links.changes
.pipe(takeUntil(this._destroy$))
.subscribe(() => this.collectLinks());
this.collectLinks();
}

Expand Down

0 comments on commit 102f1b3

Please sign in to comment.