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

Class MyApp

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

Source from the content-addressed store, hash-verified

432 }
433
434 @Component({
435 selector: 'my-app',
436 template: '<my-comp [name]="name"></my-comp>',
437 standalone: false,
438
439 changeDetection: ChangeDetectionStrategy.Eager,
440 })
441 class MyApp {
442 @ViewChild(MyComponent) comp!: MyComponent;
443 name: string = 'Nancy';
444 }
445
446 it('should check OnPush components on initialization', () => {
447 TestBed.configureTestingModule({declarations: [MyComponent, MyApp]});

Callers

nothing calls this directly

Calls 2

ComponentInterface · 0.90
injectFunction · 0.90

Tested by

no test coverage detected