@angularclass/request-idle-callback
- Version 1.0.7
- Published
- No dependencies
- Apache-2.0 license
Install
npm i @angularclass/request-idle-callbackyarn add @angularclass/request-idle-callbackpnpm add @angularclass/request-idle-callbackOverview
requestIdleCallback for Angular 2
Index
Variables
variable ANGULARCLASS_IDLE_PROVIDERS
const ANGULARCLASS_IDLE_PROVIDERS: typeof Idle[];Functions
function providePrefetchIdleCallbacks
providePrefetchIdleCallbacks: ( prefetchCallbacks?: any[]) => ( | typeof Idle | { provide: any; multi: boolean; useFactory: (injector: any) => () => any; deps: typeof Injector[]; })[];function setupPrefetchInitializer
setupPrefetchInitializer: ( injector: Injector, callbacks?: Array<Function>) => () => any;Classes
class Idle
class Idle {}constructor
constructor(ngZone: NgZone);property idleHandlers
idleHandlers: Map<{}, {}>;property ngZone
ngZone: NgZone;property stableObservable$
stableObservable$: any;method cancelIdleCallback
cancelIdleCallback: (handler: any) => void;method polyfillCancelIdleCallback
polyfillCancelIdleCallback: (handler: any) => void;method polyfillRequestIdleCallback
polyfillRequestIdleCallback: ( callback: IdleCallback, { timeout }?: IdleOptions) => void;method requestIdleCallback
requestIdleCallback: (callback: any) => void;Type Aliases
type Deadline
type Deadline = { didTimeout: boolean; timeRemaining: () => number;};type IdleCallback
type IdleCallback = (deadline: Deadline) => void;type IdleOptions
type IdleOptions = { timeout: number;};Package Files (1)
Dependencies (0)
No dependencies.
Dev Dependencies (17)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@angularclass/request-idle-callback.
- Markdown[](https://www.jsdocs.io/package/@angularclass/request-idle-callback)
- HTML<a href="https://www.jsdocs.io/package/@angularclass/request-idle-callback"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 2400 ms. - Missing or incorrect documentation? Open an issue for this package.
