MCPcopy
hub / github.com/angular/angular / errorFor

Function errorFor

packages/core/test/acceptance/create_component_spec.ts:2058–2060  ·  view source on GitHub ↗
(type: Type<unknown>)

Source from the content-addressed store, hash-verified

2056 class AnInjectiable {}
2057
2058 const errorFor = (type: Type<unknown>): string =>
2059 `NG0906: The ${stringifyForError(type)} is not an Angular component, ` +
2060 `make sure it has the \`@Component\` decorator.`;
2061 const hostElement = document.createElement('div');
2062 const environmentInjector = TestBed.inject(EnvironmentInjector);
2063

Callers 1

Calls 1

stringifyForErrorFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…