Browse Source

use RouterEvents instead of NavigationEvents

pull/7537/head
Arman Ozak 5 years ago
parent
commit
36eb7f9467
  1. 6
      npm/ng-packs/packages/theme-shared/src/lib/components/breadcrumb/breadcrumb.component.ts

6
npm/ng-packs/packages/theme-shared/src/lib/components/breadcrumb/breadcrumb.component.ts

@ -1,7 +1,7 @@
import { import {
ABP, ABP,
getRoutePath, getRoutePath,
NavigationEvents, RouterEvents,
RoutesService, RoutesService,
SubscriptionService, SubscriptionService,
TreeNode, TreeNode,
@ -25,12 +25,12 @@ export class BreadcrumbComponent implements OnInit {
private router: Router, private router: Router,
private routes: RoutesService, private routes: RoutesService,
private subscription: SubscriptionService, private subscription: SubscriptionService,
private navigationEvents: NavigationEvents, private routerEvents: RouterEvents,
) {} ) {}
ngOnInit(): void { ngOnInit(): void {
this.subscription.addOne( this.subscription.addOne(
this.navigationEvents.getOneOf('End').pipe( this.routerEvents.getNavigationEvents('End').pipe(
// tslint:disable-next-line:deprecation // tslint:disable-next-line:deprecation
startWith(null), startWith(null),
map(() => this.routes.search({ path: getRoutePath(this.router) })), map(() => this.routes.search({ path: getRoutePath(this.router) })),

Loading…
Cancel
Save