I have defined an enum type in my TypeScript file, and I want to use it as a condition in my HTML code. However, when trying to access the "values" of the enum, they appear to be undefined even though I have declared them and inherited from the exported enum.
export enum PlanType {
Marketing = 1,
Installation = 2,
MarketingAndInstallation = 3,
Collect = 4,
SwitchingDevice = 5,
Periodic = 6,
Case = 7
}
.TS file
planType: PlanType;
<div *ngIf="model.planType === planType.Case">
</div>