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

Method register

packages/core/src/render3/after_render/manager.ts:125–137  ·  view source on GitHub ↗
(sequence: AfterRenderSequence)

Source from the content-addressed store, hash-verified

123 }
124
125 register(sequence: AfterRenderSequence): void {
126 const {view} = sequence;
127 if (view !== undefined) {
128 // Delay adding it to the manager, add it to the view instead.
129 (view[AFTER_RENDER_SEQUENCES_TO_ADD] ??= []).push(sequence);
130
131 // Mark the view for traversal to ensure we eventually schedule the afterNextRender.
132 markAncestorsForTraversal(view);
133 view[FLAGS] |= LViewFlags.HasChildViewsToRefresh;
134 } else {
135 this.addSequence(sequence);
136 }
137 }
138
139 addSequence(sequence: AfterRenderSequence): void {
140 if (this.executing) {

Callers

nothing calls this directly

Calls 3

addSequenceMethod · 0.95
pushMethod · 0.45

Tested by

no test coverage detected