What you need to do in your code is to define an array of parameters and a variable for the selected parameter in Page.ts and at some point fill it with options objects. So define an array like this ... (I use TypeScript definitions for each property here, because why not)
export class Page {
selectedValue: number;
optionsList: Array<{ value: number, text: string, checked: boolean }> = [];
constructor() { }
- ...
optionsList: any[] = [];
( 2 , , 3-, ).
, , . ...
constructor() {
this.optionsList.push({ value: 1, text: 'option 1', checked: false });
this.optionsList.push({ value: 2, text: 'option 2', checked: false });
}
HTML- :
<ion-select [(ngModel)]="selectedvalue">
<ion-option *ngFor="let item of optionsList" value="{{item.value}}" checked="{{item.checked}}">{{item.text}}</ion-option>
</ion-select>