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

Function renderPlaceholder

packages/core/src/defer/rendering.ts:433–438  ·  view source on GitHub ↗
(lView: LView, tNode: TNode)

Source from the content-addressed store, hash-verified

431
432/** Utility function to render placeholder content (if present) */
433export function renderPlaceholder(lView: LView, tNode: TNode) {
434 const lContainer = lView[tNode.index];
435 ngDevMode && assertLContainer(lContainer);
436
437 renderDeferBlockState(DeferBlockState.Placeholder, tNode, lContainer);
438}
439
440/**
441 * Subscribes to the "loading" Promise and renders corresponding defer sub-block,

Callers 6

ɵɵdeferWhenFunction · 0.90
ɵɵdeferOnImmediateFunction · 0.90
ɵɵdeferOnHoverFunction · 0.90
ɵɵdeferOnInteractionFunction · 0.90
ɵɵdeferOnViewportFunction · 0.90
scheduleDelayedTriggerFunction · 0.90

Calls 2

assertLContainerFunction · 0.90
renderDeferBlockStateFunction · 0.85

Tested by

no test coverage detected