You can use your enum values in your HTML templates. This comes in handy for cases like ngSwitch where it’s more readable to use the enum value than it’s underlying value.
There are many ways to do this but I like to use this technique which requires defining the enum in your component class:
// Expose enum to HTML template. myEnum: typeof MyEnum = MyEnum;
And then using it in your component template: