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

Function isComponentInstance

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

Source from the content-addressed store, hash-verified

204}
205
206export function isComponentInstance(instance: any): boolean {
207 return instance && instance.constructor && instance.constructor.ɵcmp;
208}
209
210export function isDirectiveInstance(instance: any): boolean {
211 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