license import { Injectable , Injector } from '@angular/core' ; import { Subject } from 'rxjs' ; import { AutoScroller } from './auto-scroller' ; @ Injectable ( { providedIn : 'root' , } ) export class AutoScrollService { constructor ( private injector ) { } createAutoScroller ( destroy$ ) { return new AutoScroller ( this . injector , destroy$ ) ; } }