Binding don't work with promise


the binding stopped working properly in the latest version, when I make the promise of the camera put the src of the image, but I must touch the screen to refresh and charge the image, not before this happened, it was immediately before appeared image.


<img src={{src}}/>


            Camera.getPicture(this.options).then((imageData) => {
               this.src = imageData;
            }, (err) => {


Have you investigated using the AsyncPipe?


Hi @DiegoHD,

You can inject NgZone, which helps your component to provide updates to UI Views.

 constructor(private ngZone: NgZone) {

    Camera.getPicture(this.options).then((imageData) => { => {
          this.src = imageData;
    }, (err) => {


your img-tag should look like that:

<img [src]="src">


@bengtler is correct, you need to create a dynamic property for the image source.

import {Page} from 'ionic-angular';
import {Camera} from 'ionic-native';
  template: `
<ion-content class="home">
  <img [src]="src" alt="img">
  <button (click)="takePhoto()" block>photo</button>

export class HomePage {
  constructor() { }
  takePhoto() {
      .then((imageData) => {
        this.src = imageData;
      }, (err) => {


Hello guys,
With [src] =“src”, works but with the same problem, I have touch the screen to show image, with ngzone I could not make it work.

However now works, with [src] =“src” and src={{src}}

I only update to ionic 2.0.0-beta. 25

Thanks for help me