The simple way to use an Enum in a template is
@Component(...)
export class MyComp {
public MyEnum: any = MyEnum;
}
Then in template:
<select>
<option value="MyEnum.ValueA">Value A</option>
</select>
The simple way to use an Enum in a template is
@Component(...)
export class MyComp {
public MyEnum: any = MyEnum;
}
Then in template:
<select>
<option value="MyEnum.ValueA">Value A</option>
</select>