UNPKG

ad-custom-lib

Version:

This is an UI custom library based on Adminlte library with purpose for personal use, if you need a full template of Primeng please visit https://github.com/mledour/angular-admin-lte

47 lines (46 loc) 1.19 kB
import { BehaviorSubject } from 'rxjs'; import { Event as RouterEvent, Router } from '@angular/router'; export interface Path { data: Object; params: Object; url: string; } export interface Paths extends Array<Path> { } export declare class RoutingService { private router; onChange: BehaviorSubject<Paths>; events: BehaviorSubject<RouterEvent>; /** * @method constructor * @param router [description] */ constructor(router: Router); /** * [createUrl description] * @method createUrl * @param route [description] * @return [description] */ private static createUrl; /** * [isChildrenSelfRoute description] * @method isChildrenSelfRoute * @param route [description] * @return [description] */ private static isChildrenSelfRoute; /** * [createBreadcrumb description] * @method createBreadcrumb * @param route [description] * @param url [description] * @return [description] */ private static createBreadcrumb; /** * [init description] * @method init */ private init; }