mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(core): add additional component metadata to component ID generation (#50340)
This commit add `exportAs`, `signals`, `inputs` and `outputs` into account when generating a component ID. Co-authored-by: alan-agius4 <17563226+alan-agius4@users.noreply.github.com> PR Close #50340
This commit is contained in:
@@ -689,6 +689,9 @@ function getComponentId(componentDef: ComponentDef<unknown>): string {
|
||||
componentDef.decls,
|
||||
componentDef.encapsulation,
|
||||
componentDef.standalone,
|
||||
componentDef.exportAs,
|
||||
JSON.stringify(componentDef.inputs),
|
||||
JSON.stringify(componentDef.outputs),
|
||||
// We cannot use 'componentDef.type.name' as the name of the symbol will change and will not
|
||||
// match in the server and browser bundles.
|
||||
Object.getOwnPropertyNames(componentDef.type.prototype),
|
||||
|
||||
Reference in New Issue
Block a user