MCPcopy
hub / github.com/angular/angular / isComponentInstance

Function isComponentInstance

packages/core/src/render3/context_discovery.ts:222–224  ·  view source on GitHub ↗
(instance: any)

Source from the content-addressed store, hash-verified

220}
221
222export function isComponentInstance(instance: any): boolean {
223 return instance && instance.constructor && instance.constructor.ɵcmp;
224}
225
226export function isDirectiveInstance(instance: any): boolean {
227 return instance && instance.constructor && instance.constructor.ɵdir;

Callers 2

getLContextFunction · 0.85
getDirectivesAtNodeIndexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…