@ -15,9 +15,9 @@ import {Router} from './router';
|
||||
|
||||
export class RouterScroller implements OnDestroy {
|
||||
// TODO(issue/24571): remove '!'.
|
||||
private routerEventsSubscription !: Unsubscribable;
|
||||
private routerEventsSubscription!: Unsubscribable;
|
||||
// TODO(issue/24571): remove '!'.
|
||||
private scrollEventsSubscription !: Unsubscribable;
|
||||
private scrollEventsSubscription!: Unsubscribable;
|
||||
|
||||
private lastId = 0;
|
||||
private lastSource: 'imperative'|'popstate'|'hashchange'|undefined = 'imperative';
|
||||
@ -27,7 +27,7 @@ export class RouterScroller implements OnDestroy {
|
||||
constructor(
|
||||
private router: Router,
|
||||
/** @docsNotRequired */ public readonly viewportScroller: ViewportScroller, private options: {
|
||||
scrollPositionRestoration?: 'disabled' | 'enabled' | 'top',
|
||||
scrollPositionRestoration?: 'disabled'|'enabled'|'top',
|
||||
anchorScrolling?: 'disabled'|'enabled'
|
||||
} = {}) {
|
||||
// Default both options to 'disabled'
|
||||
|
Reference in New Issue
Block a user