I am trying to use enum in angularjs 2 templates. Below is my code
@Component({ selector: \'test\', template: ` &
The simple way to use an Enum in a template is
@Component(...) export class MyComp { public MyEnum: any = MyEnum; }
Then in template:
Value A