MCPcopy Create free account
hub / github.com/angular/angular / ɵɵdeferOnTimer

Function ɵɵdeferOnTimer

packages/core/src/defer/instructions.ts:508–519  ·  view source on GitHub ↗
(delay: number)

Source from the content-addressed store, hash-verified

506 * @codeGenApi
507 */
508export function ɵɵdeferOnTimer(delay: number) {
509 const lView = getLView();
510 const tNode = getCurrentTNode()!;
511
512 if (ngDevMode) {
513 trackTriggerForDebugging(lView[TVIEW], tNode, `on timer(${delay}ms)`);
514 }
515
516 if (!shouldAttachTrigger(TriggerType.Regular, lView, tNode)) return;
517
518 scheduleDelayedTrigger(onTimer(delay));
519}
520
521/**
522 * Creates runtime data structures for the `prefetch on timer` deferred trigger.

Callers

nothing calls this directly

Calls 6

getLViewFunction · 0.90
getCurrentTNodeFunction · 0.90
trackTriggerForDebuggingFunction · 0.90
shouldAttachTriggerFunction · 0.90
scheduleDelayedTriggerFunction · 0.90
onTimerFunction · 0.90

Tested by

no test coverage detected