MCPcopy Index your code
hub / github.com/angular/angular / isElementRefLike

Function isElementRefLike

packages/core/test/acceptance/query_spec.ts:1236–1238  ·  view source on GitHub ↗

* A helper function to check if a given object looks like ElementRef. It is used in place of * the `instanceof ElementRef` check since ivy returns a type that looks like ElementRef (have * the same properties but doesn't pass the instanceof ElementRef test)

(result: any)

Source from the content-addressed store, hash-verified

1234 * the same properties but doesn't pass the instanceof ElementRef test)
1235 */
1236 function isElementRefLike(result: any): boolean {
1237 return result.nativeElement != null;
1238 }
1239
1240 it('should match directives on elements that used to be wrapped by a required parent in HTML parser', () => {
1241 @Directive({

Callers 1

query_spec.tsFile · 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…