MCPcopy Create free account
hub / github.com/angular/angular / onDeferBlockCompletion

Function onDeferBlockCompletion

packages/core/src/defer/triggering.ts:599–604  ·  view source on GitHub ↗

* Registers cleanup functions for a defer block when the block has finished * fetching and rendering

(lDetails: LDeferBlockDetails, callback: VoidFunction)

Source from the content-addressed store, hash-verified

597 * fetching and rendering
598 */
599function onDeferBlockCompletion(lDetails: LDeferBlockDetails, callback: VoidFunction) {
600 if (!Array.isArray(lDetails[ON_COMPLETE_FNS])) {
601 lDetails[ON_COMPLETE_FNS] = [];
602 }
603 lDetails[ON_COMPLETE_FNS].push(callback);
604}
605
606/**
607 * Determines whether specific trigger types should be attached during an instruction firing

Callers 1

Calls 2

isArrayMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected