import { Injectable, NgZone } from '@angular/core'; import { IElementRef } from './IElementRef'; import { ScrollSet } from './ScrollSet'; @Injectable() export class ScrollSyncFactory { constructor(private zone: NgZone) { } public syncHorizontalScroll(elements: IElementRef[], eventName: string, targetClass: string) { return new ScrollSet(this.zone, "horizontal", elements, eventName, targetClass); } public syncVerticalScroll(elements: IElementRef[], eventName: string, targetClass: string) { return new ScrollSet(this.zone, "vertical", elements, eventName, targetClass); } }