title: (Angular 5) javascript Image onload in angular
body: <p>I want to use <code>Image.onload = function () {}</code> in angular </p>
  
  <p>my code</p>
  
  <pre><code>loadImage(path) {
    this.loadedImage = new Image();
    this.loadedImage.crossOrigin = "Anonymous";
    this.loadedImage.src = path;
  
    this.loadedImage.onload = function () {
      this._PreviewHelper.changeModelTexture(this.model, this.loadedImage);     
    }
  }
  </code></pre>
  
  <p>Is there a way to use this event on angular.</p>
  
  <p>Any help would be greatly appreciated.</p>