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

Function assertProjectionSlots

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

Source from the content-addressed store, hash-verified

145}
146
147export function assertProjectionSlots(lView: LView, errMessage?: string) {
148 assertDefined(lView[DECLARATION_COMPONENT_VIEW], 'Component views should exist.');
149 assertDefined(
150 lView[DECLARATION_COMPONENT_VIEW][T_HOST]!.projection,
151 errMessage ||
152 'Components with projection nodes (<ng-content>) must have projection slots defined.',
153 );
154}
155
156export function assertParentView(lView: LView | null, errMessage?: string) {
157 assertDefined(

Callers 1

getProjectionNodesFunction · 0.90

Calls 1

assertDefinedFunction · 0.90

Tested by

no test coverage detected