UNPKG

ng-refs

Version:

Practice better dependency injection of browser APIs within your Angular components and services.

13 lines 342 B
import { Injectable } from '@angular/core'; export class IntervalRef { nativeClear(handle) { return clearInterval(handle); } nativeSet(handler, timeout, ...args) { return setInterval(handler, timeout, ...args); } } IntervalRef.decorators = [ { type: Injectable } ]; //# sourceMappingURL=interval.ref.js.map