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

Function assertParentView

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

Source from the content-addressed store, hash-verified

154}
155
156export function assertParentView(lView: LView | null, errMessage?: string) {
157 assertDefined(
158 lView,
159 errMessage || "Component views should always have a parent view (component's host view)",
160 );
161}
162
163/**
164 * This is a basic sanity check that the `injectorIndex` seems to point to what looks like a

Callers 2

getFirstNativeNodeFunction · 0.90
collectNativeNodesFunction · 0.90

Calls 1

assertDefinedFunction · 0.90

Tested by

no test coverage detected