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

Method clear

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

Source from the content-addressed store, hash-verified

350 }
351
352 override clear(): void {
353 while (this.length > 0) {
354 this.remove(this.length - 1);
355 }
356 }
357
358 override get(index: number): ViewRef | null {
359 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