I am seeking assistance in populating a select box with enum values that belong to a class property. Below is my HTML:
<div class="channel-visible">
<div class="title">Visibility</div>
<dx-select-box
[(value)]="newChannel.visibility"
[dataSource]="channelVisibility"
>
</dx-select-box>
</div>
Here is the component code:
channelVisibility = EChannelVisibility;
newChannel = new Channel();
The enum type EChannelVisibility is a property of the Channel class. When attempting to implement it in the HTML above, I encounter the following error: https://i.sstatic.net/6RL0f.png