Having an issue with implementing an ion-select
in Ionic 3. Despite following the Ionic documentation, I am unable to identify my mistake. My code is as follows:
hosts: any[] = [
'*MANAGER*',
'Alberto Bellesini',
'Alessandro Rodeghero',
'Andrea Burla',
..............
];
This is what I have in my HTML:
<ion-select [(ngModel)]="selectedHost">
<ion-label>From:</ion-label>
<ion-option *ngFor="let host of hosts" [value]="host"></ion-option>
</ion-select>
The implementation is not working as expected. While the number of radio buttons matches the length of my array, all elements appear to be null or undefined, rendering them invisible. Changing hosts
to an array of strings did not resolve the issue either. Would appreciate some assistance here.