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

Function errorFor

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

Source from the content-addressed store, hash-verified

2022 class AnInjectiable {}
2023
2024 const errorFor = (type: Type<unknown>): string =>
2025 `NG0906: The ${stringifyForError(type)} is not an Angular component, ` +
2026 `make sure it has the \`@Component\` decorator.`;
2027 const hostElement = document.createElement('div');
2028 const environmentInjector = TestBed.inject(EnvironmentInjector);
2029

Callers 1

Calls 1

stringifyForErrorFunction · 0.90

Tested by

no test coverage detected