fix(ivy): @NgModule() should not require an metadata object (#27278)

There is no test in this diff because I'm making an already failing test pass.

PR Close #27278
This commit is contained in:
Igor Minar 2018-11-17 22:37:13 -08:00 committed by Jason Aden
parent 1cca27d823
commit 5d82c73da6
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ const EMPTY_ARRAY: Type<any>[] = [];
*
* This function automatically gets called when a class has a `@NgModule` decorator.
*/
export function compileNgModule(moduleType: Type<any>, ngModule: NgModule): void {
export function compileNgModule(moduleType: Type<any>, ngModule: NgModule = {}): void {
compileNgModuleDefs(moduleType, ngModule);
setScopeOnDeclaredComponents(moduleType, ngModule);
}