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

Function errorFor

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

stringifyForErrorFunction · 0.90

Tested by

no test coverage detected