Skip to content

Instantly share code, notes, and snippets.

@trumbitta
Created January 26, 2017 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trumbitta/b3805ddac612d45942bb01386307ed84 to your computer and use it in GitHub Desktop.
Save trumbitta/b3805ddac612d45942bb01386307ed84 to your computer and use it in GitHub Desktop.
Failed update
private imageSrc: string;
ngOnInit() {
this.imageSrc = 'default value';
this.subscription = this.imageService.getRemoteUrl$(this.componentData).subscribe((url) => {
console.log('QUAAAAACK pre', this.imageSrc);
this.imageSrc = url;
console.log('QUAAAAACK post', this.imageSrc);
});
}
----
debug: {{ imageSrc }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment