UNPKG

ng-scroll-spy

Version:

Angular directive that tracking the scrolling of the document and highlight the navigation link

22 lines (21 loc) 815 B
import { AfterContentInit, ElementRef, Renderer2 } from '@angular/core'; import * as i0 from "@angular/core"; export declare class ScrollSpyDirective implements AfterContentInit { private document; private el; private renderer; private elements; private currentActiveLink; private directNavigation; constructor(document: Document, el: ElementRef, renderer: Renderer2); ngAfterContentInit(): void; private collectIds; private _onLinkClicked; private _getPeerElement; private static getId; onWindowScroll(event: Event): void; private _cleanCurrentLink; private _setCurrentLink; static ɵfac: i0.ɵɵFactoryDeclaration<ScrollSpyDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollSpyDirective, "[scroll-spy]", never, {}, {}, never>; }