MCPcopy Index your code
hub / github.com/angular/angular / assertProjectionSlots

Function assertProjectionSlots

packages/core/src/render3/assert.ts:161–168  ·  view source on GitHub ↗
(lView: LView, errMessage?: string)

Source from the content-addressed store, hash-verified

159}
160
161export function assertProjectionSlots(lView: LView, errMessage?: string) {
162 assertDefined(lView[DECLARATION_COMPONENT_VIEW], 'Component views should exist.');
163 assertDefined(
164 lView[DECLARATION_COMPONENT_VIEW][T_HOST]!.projection,
165 errMessage ||
166 'Components with projection nodes (<ng-content>) must have projection slots defined.',
167 );
168}
169
170export function assertParentView(lView: LView | null, errMessage?: string) {
171 assertDefined(

Callers 1

getProjectionNodesFunction · 0.90

Calls 1

assertDefinedFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…