fix(ivy): auto register NgModules with ID (#33663)

PR Close #33663
This commit is contained in:
Andrew Scott
2019-11-07 11:45:01 -08:00
committed by Kara Erickson
parent 9ab49def61
commit 4988094e7d
2 changed files with 10 additions and 1 deletions

View File

@ -6,7 +6,9 @@
* found in the LICENSE file at https://angular.io/license
*/
import {Type} from '../interface/type';
import {autoRegisterModuleById} from '../render3/definition';
import {NgModuleType} from '../render3/ng_module_ref';
import {stringify} from '../util/stringify';
@ -68,5 +70,5 @@ export function restoreRegisteredModulesState(moduleMap: ModuleRegistrationMap)
}
export function getRegisteredNgModuleType(id: string) {
return modules.get(id);
return modules.get(id) || autoRegisterModuleById[id];
}