Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

The change of data in controller doesn't update automatically

$
0
0

Not only that, it means this, bye bye self variable :smile: :

// var self = this; No longer needed with fat arrow functions
return new Promise((resolve, reject) => {
  window.imagePicker.getPictures(function(results) {
    for (var i = 0; i < results.length; i++ ) {
      // self.thumbnail = results[i];  Not any more
      this.thumbnail = results[i]
      return resolve(result[i]);
    }
  }, function(error) {
    return reject(error);
  });
}

Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>