MCPcopy
hub / github.com/angular/angular / remove

Function remove

packages/core/src/application/application_ref.ts:860–865  ·  view source on GitHub ↗
(list: T[], el: T)

Source from the content-addressed store, hash-verified

858}
859
860export function remove<T>(list: T[], el: T): void {
861 const index = list.indexOf(el);
862 if (index > -1) {
863 list.splice(index, 1);
864 }
865}
866
867export const enum ApplicationRefDirtyFlags {
868 None = 0,

Callers 6

bootstrapFunction · 0.90
bootstrapImplMethod · 0.70
detachViewMethod · 0.70
onDestroyMethod · 0.70
constructorMethod · 0.50
ngOnInitMethod · 0.50

Calls 1

indexOfMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…