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

Class Cmp

packages/core/test/acceptance/di_spec.ts:283–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281
282 expect(() => {
283 @Component({
284 selector: 'test-cmp',
285 template: '',
286 // The double array here is necessary to escape the compile-time error, via Provider's
287 // `any[]` option.
288 providers: [[importProvidersFrom(Module)]],
289 standalone: false,
290 changeDetection: ChangeDetectionStrategy.Eager,
291 })
292 class Cmp {}
293
294 TestBed.createComponent(Cmp);
295 }).toThrowError(/NG0207/);

Callers

nothing calls this directly

Calls 2

ComponentInterface · 0.90
importProvidersFromFunction · 0.90

Tested by

no test coverage detected