I am currently referencing the enum int value directly in my html view, but I would prefer to reference by the enum name - for example, as I do in
enum
html
You can create a method for returning string representation of enum element in your component, like:
getActionName(): string { return Action[this.action]; }
And in html template call it like:
{{getActionName()}}
When your declared enum is like:
export enum Action { update, create }