Skip to content

Commit

Permalink
use RouterEvents instead of NavigationEvents
Browse files Browse the repository at this point in the history
  • Loading branch information
armanozak committed Jan 29, 2021
1 parent 531ed0f commit 36eb7f9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
ABP,
getRoutePath,
NavigationEvents,
RouterEvents,
RoutesService,
SubscriptionService,
TreeNode,
@@ -25,12 +25,12 @@ export class BreadcrumbComponent implements OnInit {
private router: Router,
private routes: RoutesService,
private subscription: SubscriptionService,
private navigationEvents: NavigationEvents,
private routerEvents: RouterEvents,
) {}

ngOnInit(): void {
this.subscription.addOne(
this.navigationEvents.getOneOf('End').pipe(
this.routerEvents.getNavigationEvents('End').pipe(
// tslint:disable-next-line:deprecation
startWith(null),
map(() => this.routes.search({ path: getRoutePath(this.router) })),

0 comments on commit 36eb7f9

Please sign in to comment.