ng-refs
Version:
Practice better dependency injection of browser APIs within your Angular components and services.
13 lines • 348 B
JavaScript
import { Injectable } from '@angular/core';
export class AnimationFrameRef {
nativeCancel(handle) {
return cancelAnimationFrame(handle);
}
nativeRequest(callback) {
return requestAnimationFrame(callback);
}
}
AnimationFrameRef.decorators = [
{ type: Injectable }
];
//# sourceMappingURL=animationframe.ref.js.map