/**
* @file Bread Crumb component.
*/
+import { isNullOrUndefined } from 'util';
import { Component, Injector, OnInit } from '@angular/core';
import { Title } from '@angular/platform-browser';
import { ActivatedRoute, NavigationEnd, Router, RouterEvent, UrlSegment } from '@angular/router';
import { TranslateService } from '@ngx-translate/core';
import { BREADCRUMBITEM } from 'CommonModel';
import { filter, startWith } from 'rxjs/operators';
-import { isNullOrUndefined } from 'util';
/**
* Creating component
/** Lifecyle Hooks the trigger before component is instantiate @public */
public ngOnInit(): void {
this.router.events
+ // eslint-disable-next-line deprecation/deprecation
.pipe(filter((event: RouterEvent) => event instanceof NavigationEnd), startWith(undefined))
.subscribe(() => this.menuItems = this.createBreadcrumbs(this.activatedRoute.root));
}
return this.translateService.instant('PAGE.DASHBOARD.NETSLICEINSTANCE');
}
}
-
}