fix(core): improve error message when component factory cannot be found (#13541)

Closes #12678
This commit is contained in:
Dzmitry Shylovich 2016-12-21 03:17:22 +03:00 committed by Chuck Jazdzewski
parent 9b8488f007
commit 383adc9ad9
1 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,8 @@ import {ComponentFactory} from './component_factory';
*/
export class NoComponentFactoryError extends BaseError {
constructor(public component: Function) {
super(`No component factory found for ${stringify(component)}`);
super(
`No component factory found for ${stringify(component)}. Did you add it to @NgModule.entryComponents?`);
}
}