angular-magic-breadcrumb
Version:
AngularMagicBreadcrumb is a library for self-generated breadcrumb in angular 7
36 lines (35 loc) • 1.38 kB
TypeScript
import { OnInit } from '@angular/core';
import { Router } from "@angular/router";
import { AngularMagicBreadcrumbService } from "./angular-magic-breadcrumb.service";
import { Location } from '@angular/common';
export declare class CustomBreadcrumbComponent implements OnInit {
private router;
breadcrumbService: AngularMagicBreadcrumbService;
private location;
mainRoot: String;
_mainRoot: String;
lastPathname: string;
currentsplitUrl: any[];
breadcumValue: {
url: string;
active: boolean;
value: string;
}[];
showBreadcrum: boolean;
constructor(router: Router, breadcrumbService: AngularMagicBreadcrumbService, location: Location);
ngOnInit(): void;
/**
* Checks if the part of the breadcrumb is active or not, and make the redirection to the specific url of the part
* @param breadcrum -> part of the full breadcrumb
*/
redirectToView(breadcrum: any): void;
/**
* Make the subscriptions to the two observables, and saves the value of them into a specific variable
* saves the breadcrumb and if should be shown or not
*/
getBreadcrum(): void;
setUrls(): void;
setItemBreadcrumbStructure(newBreadcrum: any, index: any): void;
getBreadcrumbStructure(): any[];
changeVisibilityBreadcrumb(value: boolean): void;
}