If I have an enum, e.g:
@Component(...)
class MyComponent {
MyEnum myEnum;
...
}
How can I use this enum in a template? E.g.
<div *ngIf="myEnum == MyEnum.SOME_OPTION">
...
</div>
Edit: I'm specifically interested in how to use enums in comparison.