MCPcopy
hub / github.com/angular/angular / MyApp

Class MyApp

packages/core/test/acceptance/change_detection_spec.ts:447–457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445 }
446
447 @Component({
448 selector: 'my-app',
449 template: '<my-comp [name]="name"></my-comp>',
450 standalone: false,
451
452 changeDetection: ChangeDetectionStrategy.Eager,
453 })
454 class MyApp {
455 @ViewChild(MyComponent) comp!: MyComponent;
456 name: string = 'Nancy';
457 }
458
459 it('should check OnPush components on initialization', () => {
460 TestBed.configureTestingModule({declarations: [MyComponent, MyApp]});

Callers

nothing calls this directly

Calls 2

ComponentInterface · 0.90
injectFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…