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

Method clear

packages/core/src/linker/view_container_ref.ts:344–348  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

342 }
343
344 override clear(): void {
345 while (this.length > 0) {
346 this.remove(this.length - 1);
347 }
348 }
349
350 override get(index: number): ViewRef | null {
351 const viewRefs = getViewRefs(this._lContainer);

Callers 15

clearChangesMethod · 0.45
ngOnDestroyMethod · 0.45
ngOnDestroyMethod · 0.45
destroyMethod · 0.45
clearModulesForTestFunction · 0.45
queue.tsFile · 0.45
scheduleAnimationQueueFunction · 0.45
destroyMethod · 0.45
ngOnDestroyMethod · 0.45
phaseFnFunction · 0.45

Calls 1

removeMethod · 0.95

Tested by

no test coverage detected