@cisstech/nge
Version:
NG Essentials is a collection of libraries for Angular developers.
27 lines (26 loc) • 1.14 kB
TypeScript
import { Location } from '@angular/common';
import { ComponentRef, ElementRef, OnChanges, OnDestroy } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import * as i0 from "@angular/core";
export declare class NgeDocTocDirective implements OnDestroy, OnChanges {
private readonly router;
private readonly location;
private readonly elementRef;
private readonly activatedRoute;
private readonly subscriptions;
private readonly observer;
private intersection?;
private anchors;
component?: ComponentRef<any>;
constructor(router: Router, location: Location, elementRef: ElementRef<HTMLElement>, activatedRoute: ActivatedRoute);
ngOnDestroy(): void;
ngOnChanges(): void;
private build;
private dashify;
private detectIntersection;
private clear;
private scroll;
private isInViewport;
static ɵfac: i0.ɵɵFactoryDeclaration<NgeDocTocDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NgeDocTocDirective, "[ngeDocToc]", never, { "component": { "alias": "ngeDocToc"; "required": false; }; }, {}, never, never, false, never>;
}