ng-refs
Version:
Practice better dependency injection of browser APIs within your Angular components and services.
13 lines • 337 B
JavaScript
import { Injectable } from '@angular/core';
export class TimeoutRef {
nativeClear(handle) {
return clearTimeout(handle);
}
nativeSet(handler, timeout, ...args) {
return setTimeout(handler, timeout, ...args);
}
}
TimeoutRef.decorators = [
{ type: Injectable }
];
//# sourceMappingURL=timeout.ref.js.map