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

Class App

packages/core/test/component_fixture_spec.ts:380–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378
379 it('throws errors that happen during detectChanges', () => {
380 @Component({
381 template: '',
382 })
383 class App {
384 ngOnInit() {
385 throw new Error();
386 }
387 }
388
389 const fixture = TestBed.createComponent(App);
390 expect(() => fixture.detectChanges()).toThrow();

Callers

nothing calls this directly

Calls 2

ComponentInterface · 0.90
signalFunction · 0.90

Tested by

no test coverage detected