diff --git a/generators/entity-client/templates/angular/src/main/webapp/app/entities/update/entity-management-update.component.html.ejs b/generators/entity-client/templates/angular/src/main/webapp/app/entities/update/entity-management-update.component.html.ejs
index fb57fc46e53..89d036d42fb 100644
--- a/generators/entity-client/templates/angular/src/main/webapp/app/entities/update/entity-management-update.component.html.ejs
+++ b/generators/entity-client/templates/angular/src/main/webapp/app/entities/update/entity-management-update.component.html.ejs
@@ -54,10 +54,8 @@ _%>
<%_ const enumPrefix = frontendAppName + '.'+ fieldType; _%>
<%_ const values = field.enumValues;
- for (key in values) {
- const enumValue = values[key]; _%>
-
- <%_ } _%>
+ const enumImports = generateEntityClientEnumImports(fields); _%>
+
<%_ } else { _%>
<%_ if (field.fieldTypeBinary && !field.blobContentTypeText) { _%>
diff --git a/generators/entity-client/templates/angular/src/main/webapp/app/entities/update/entity-management-update.component.ts.ejs b/generators/entity-client/templates/angular/src/main/webapp/app/entities/update/entity-management-update.component.ts.ejs
index 0d9767134a6..afcc43c9ba1 100644
--- a/generators/entity-client/templates/angular/src/main/webapp/app/entities/update/entity-management-update.component.ts.ejs
+++ b/generators/entity-client/templates/angular/src/main/webapp/app/entities/update/entity-management-update.component.ts.ejs
@@ -74,6 +74,10 @@ import { <%= uniqueRel.otherEntityAngularName %>Service } from 'app/entities/<%=
}
});
_%>
+<%_ const enumImports = generateEntityClientEnumImports(fields); _%>
+<%_ enumImports.forEach( (importedPath, importedType) => { _%>
+import { <%- importedType %> } from '<%- importedPath %>';
+<%_ }); _%>
@Component({
selector: '<%= jhiPrefixDashed %>-<%= entityFileName %>-update',
@@ -81,6 +85,9 @@ _%>
})
export class <%= entityAngularName %>UpdateComponent implements OnInit {
isSaving = false;
+<%_ enumImports.forEach( (importedPath, importedType) => { _%>
+ <%- _.lowerFirst(importedType) %>Values = Object.keys(<%- importedType %>);
+<%_ }); _%>
<%_ for (const relationshipsByEntityNeedingOptions of Object.values(differentRelationships).map(relationships => relationships.filter(rel => rel.ownerSide)).filter(relationships => relationships.length > 0)) { _%>
<%_ const relationshipsWithCustomUniqueOptions = relationshipsByEntityNeedingOptions.filter(rel => rel.relationshipOneToOne && !rel.otherEntityUser); _%>