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:
parent
1cca27d823
commit
5d82c73da6
|
@ -23,7 +23,7 @@ const EMPTY_ARRAY: Type<any>[] = [];
|
||||||
*
|
*
|
||||||
* This function automatically gets called when a class has a `@NgModule` decorator.
|
* 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);
|
compileNgModuleDefs(moduleType, ngModule);
|
||||||
setScopeOnDeclaredComponents(moduleType, ngModule);
|
setScopeOnDeclaredComponents(moduleType, ngModule);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue