(lView: LView, errMessage?: string)
| 159 | } |
| 160 | |
| 161 | export 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 | |
| 170 | export function assertParentView(lView: LView | null, errMessage?: string) { |
| 171 | assertDefined( |
no test coverage detected
searching dependent graphs…