MCPcopy
hub / github.com/angular/angular / indexOf

Method indexOf

packages/core/src/linker/view_container_ref.ts:588–591  ·  view source on GitHub ↗
(viewRef: ViewRef)

Source from the content-addressed store, hash-verified

586 }
587
588 override indexOf(viewRef: ViewRef): number {
589 const viewRefsArr = getViewRefs(this._lContainer);
590 return viewRefsArr !== null ? viewRefsArr.indexOf(viewRef) : -1;
591 }
592
593 override remove(index?: number): void {
594 const adjustedIdx = this._adjustIndex(index, -1);

Callers 15

insertImplMethod · 0.95
hasInternalAnnotationMethod · 0.80
executeScriptMethod · 0.80
_isEventMethod · 0.80
supportsMethod · 0.80
directiveMethod · 0.80
parseEventNameMethod · 0.80
matchEventFullKeyCodeMethod · 0.80
handleFetchFunction · 0.80
cacheBustFunction · 0.80
initializeFullyMethod · 0.80
urlToRegexFunction · 0.80

Calls 1

getViewRefsFunction · 0.85

Tested by 8

analyzeMethod · 0.64
isFirefoxFunction · 0.64
expectPageIndexFunction · 0.64
isFirefoxFunction · 0.64
preloadMethod · 0.64