UNPKG

@nebular/theme

Version:
16 lines (15 loc) 567 B
import { Router } from '@angular/router'; import { Observable } from 'rxjs'; /** * This service determines whether we should scroll the layout back to top. * This occurs when the page is changed, so when current url PATH is not equal to the previous one. * * TODO: this is most likely a temporary solutions as recently Angular introduces ViewportScroll * and scroll restoration process */ export declare class NbRestoreScrollTopHelper { private router; constructor(router: Router); shouldRestore(): Observable<boolean>; private pageChanged; }