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

Class SomeDir

packages/core/test/test_bed_spec.ts:2105–2119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2103 const A = new InjectionToken('A');
2104
2105 @Directive({
2106 selector: '[dir]',
2107 providers: [{provide: A, useValue: 'A'}],
2108 standalone: false,
2109 })
2110 class SomeDir {
2111 constructor(
2112 @Inject(A) private tokenA: string,
2113 private elementRef: ElementRef,
2114 ) {}
2115
2116 ngAfterViewInit() {
2117 this.elementRef.nativeElement.innerHTML = this.tokenA;
2118 }
2119 }
2120
2121 const SomeComponent = getAOTCompiledComponent(true, [SomeDir]);
2122 TestBed.configureTestingModule({imports: [SomeComponent]});

Callers

nothing calls this directly

Calls 1

DirectiveClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…