feat(ivy): register NgModules with ids when compiled with AOT (#29980)
This commit adds registration of AOT compiled NgModules that have 'id' properties set in their metadata. Such modules have a call to registerNgModuleType() emitted as part of compilation. The JIT behavior of this code is already in place. This is required for module loading systems (such as g3) which rely on getModuleFactory(). PR Close #29980
This commit is contained in:

committed by
Ben Lesh

parent
4229b41057
commit
0df719a461
@ -229,6 +229,9 @@ export class Identifiers {
|
||||
moduleName: CORE,
|
||||
};
|
||||
|
||||
static registerNgModuleType:
|
||||
o.ExternalReference = {name: 'ɵregisterNgModuleType', moduleName: CORE};
|
||||
|
||||
// sanitization-related functions
|
||||
static sanitizeHtml: o.ExternalReference = {name: 'ɵɵsanitizeHtml', moduleName: CORE};
|
||||
static sanitizeStyle: o.ExternalReference = {name: 'ɵɵsanitizeStyle', moduleName: CORE};
|
||||
|
Reference in New Issue
Block a user