Can we use enums in an angular2 view template?
Create a property for your enum on the parent component to your component class and assign the enum to it, then reference that property in your template.
export class Parent {
public dropdownTypes = DropdownType;
}
export class Dropdown {
@Input() public set dropdownType(value: any) {
console.log(value);
};
}
This allows you to enumerate the enum as expected in your template.