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

Class MyApp

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

Source from the content-addressed store, hash-verified

419 }
420
421 @Component({
422 selector: 'my-app',
423 template: '<my-comp [name]="name"></my-comp>',
424 imports: [MyComponent],
425 changeDetection: ChangeDetectionStrategy.Eager,
426 })
427 class MyApp {
428 @ViewChild(MyComponent) comp!: MyComponent;
429 name: string = 'Nancy';
430 }
431
432 it('should check OnPush components on initialization', () => {
433 TestBed.configureTestingModule({imports: [MyComponent, MyApp]});

Callers

nothing calls this directly

Calls 2

ComponentInterface · 0.90
injectFunction · 0.90

Tested by

no test coverage detected