@cisstech/nge
Version:
NG Essentials is a collection of libraries for Angular developers.
40 lines (39 loc) • 1.4 kB
TypeScript
import { Location } from '@angular/common';
import { Injector, OnDestroy } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { NgeDocLink, NgeDocState } from './nge-doc';
import * as i0 from "@angular/core";
export declare class NgeDocService implements OnDestroy {
private readonly router;
private readonly injector;
private readonly location;
private readonly activatedRoute;
private readonly state;
private readonly pages;
private readonly links;
private readonly subscriptions;
/** documentation state */
get stateChanges(): import("rxjs").Observable<NgeDocState>;
constructor(router: Router, injector: Injector, location: Location, activatedRoute: ActivatedRoute);
ngOnDestroy(): void;
/**
* Loads navigation from the router configuration.
*/
setup(): Promise<void>;
/**
* Checks whether the given `link` is active.
* @param link The link to test.
*/
isActive(link: NgeDocLink): boolean;
/**
* Checks whether the given `link` includes sub links.
* @param link The link to test.
*/
isExpandable(link: NgeDocLink): boolean;
private join;
private resolvePageLinks;
private onChangeRoute;
private reset;
static ɵfac: i0.ɵɵFactoryDeclaration<NgeDocService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<NgeDocService>;
}