(lView: LView, initPhase: InitPhaseState)
| 207 | } |
| 208 | |
| 209 | export function incrementInitPhaseFlags(lView: LView, initPhase: InitPhaseState): void { |
| 210 | ngDevMode && |
| 211 | assertNotEqual( |
| 212 | initPhase, |
| 213 | InitPhaseState.InitPhaseCompleted, |
| 214 | 'Init hooks phase should not be incremented after all init hooks have been run.', |
| 215 | ); |
| 216 | let flags = lView[FLAGS]; |
| 217 | if ((flags & LViewFlags.InitPhaseStateMask) === initPhase) { |
| 218 | flags &= LViewFlags.IndexWithinInitPhaseReset; |
| 219 | flags += LViewFlags.InitPhaseStateIncrementer; |
| 220 | lView[FLAGS] = flags; |
| 221 | } |
| 222 | } |
| 223 | |
| 224 | /** |
| 225 | * Calls lifecycle hooks with their contexts, skipping init hooks if it's not |
no test coverage detected
searching dependent graphs…