MCPcopy
hub / github.com/angular/angular / reattach

Method reattach

packages/core/src/render3/view_ref.ts:281–284  ·  view source on GitHub ↗

* Re-attaches a view to the change detection tree. * * This can be used to re-attach views that were previously detached from the tree * using ChangeDetectorRef#detach. Views are attached to the tree by default. * * <!-- TODO: Add a link to a chapter on detach/reattach/local d

()

Source from the content-addressed store, hash-verified

279 * ```
280 */
281 reattach(): void {
282 updateAncestorTraversalFlagsOnAttach(this._lView);
283 this._lView[FLAGS] |= LViewFlags.Attached;
284 }
285
286 /**
287 * Checks the view and its children.

Tested by

no test coverage detected