UNPKG

757 BTypeScriptView Raw
1import { Router } from '@angular/router';
2import { Observable } from 'rxjs';
3import * as i0 from "@angular/core";
4/**
5 * This service determines whether we should scroll the layout back to top.
6 * This occurs when the page is changed, so when current url PATH is not equal to the previous one.
7 *
8 * TODO: this is most likely a temporary solutions as recently Angular introduces ViewportScroll
9 * and scroll restoration process
10 */
11export declare class NbRestoreScrollTopHelper {
12 private router;
13 constructor(router: Router);
14 shouldRestore(): Observable<boolean>;
15 private pageChanged;
16 static ɵfac: i0.ɵɵFactoryDeclaration<NbRestoreScrollTopHelper, never>;
17 static ɵprov: i0.ɵɵInjectableDeclaration<NbRestoreScrollTopHelper>;
18}