Вы должны заявить в классе экспорта:
images :any[]=[];
и тогда в вашей функции вы должны написать это:
getPhoto(){
let options : ImagePickerOptions ={
maximumImagesCount: 5, // number of pictures
quality:70, // quality 70/100
width: 512, // optional
height: 256, // optional
outputType: 1 // type of output 1 if you want to use base64 or 0 for file_uri type
};
return this.imagePicker.getPictures(options).then( (res)=>{
for (var i = 0; i < res.length; i++) {
let nrm = `data:image/jpeg;base64,`+res[i];
this.images.push(nrm); // this will push the links of pictures from your device to the array images
}
})
}
и затем вы можете отобразить его с помощью ngfor в html