How to show img when after pickImage


#1

When i pick image from library. Show image didn’t change from assets/img/default.png.

Class

imgPath = 'assets/img/default.png';

pickImg(){
    let options = {
      quality: 70,
      maximumImagesCount: 1,
    };
    
    this.imagePicker.getPictures(options).then((results) => {
      console.log('Image URI: ' + results[0]);
      this.imgPath = results[0];
    }, (err) => { });

  }

View
<img src="{{imgPath}}" >

How to do this?

global packages:

@ionic/cli-utils : 1.0.0
Cordova CLI      : 7.0.0 
Ionic CLI        : 3.0.0

local packages:

@ionic/app-scripts              : 1.3.7
@ionic/cli-plugin-cordova       : 1.0.0
@ionic/cli-plugin-ionic-angular : 1.0.0
Ionic Framework                 : ionic-angular 3.2.0

System:

Node       : v6.9.5
OS         : macOS Sierra
Xcode      : Xcode 8.3.2 Build version 8E2002 
ios-deploy : 1.9.1 
ios-sim    : 5.0.13