I want to access array data and display this data in ion-select.
html
<ion-item>
<ion-label>Select Time</ion-label>
<ion-select interface ="popover">
<div *ngFor="let item of items">
<ion-option > {{item}}</ion-option>
</div>
</ion-select>
ts file
ionViewDidLoad(){
let url = 'http://mysiteurl/wp-json/wp/v2/authores/4';
this.http.get(url, this.config.options).map(res => res.json())
.subscribe((response: any) => {
this.items = response;
response.forEach(item =>
console.log(this.item));
}, (err) => {
let alert = this.alertCtrl.create({
title: 'Error',
subTitle: 'Please check your credentials',
buttons: ['OK']
});
alert.present();
});
}
}
and this is my api response
[
"09:00 AM -12:00 PM",
"12:00 PM - 03:00 PM",
"05:00 PM - 07:00 PM"
]
How to access these values in my ion-select option.I am not able to do that.

console.log(this.item)is invalid. Do you want to just printitemorthis.items?console.log(response)print just insidesubscribe?