MCPcopy Index your code
hub / github.com/angular/angular / register

Method register

packages/core/src/render3/after_render/manager.ts:125–139  ·  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 if (!this.executing) {
135 this.addSequence(sequence);
136 } else {
137 this.deferredRegistrations.add(sequence);
138 }
139 }
140
141 addSequence(sequence: AfterRenderSequence): void {
142 this.sequences.add(sequence);

Callers

nothing calls this directly

Calls 4

addSequenceMethod · 0.95
addMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected