Skip to content

Instantly share code, notes, and snippets.

@aconfee
Last active September 10, 2016 17:10
Show Gist options
  • Save aconfee/b3a54e746d21448db5327063dfff209d to your computer and use it in GitHub Desktop.
Save aconfee/b3a54e746d21448db5327063dfff209d to your computer and use it in GitHub Desktop.
Angular 2 Safari Bug
<div galleryScroll class='gallery-image-container hide-gallery' [class.show-gallery]='showGallery'></div>
private showGallery: boolean = false;
constructor() {
let temp = new Image();
temp.addEventListener('load', () => {
this.showGallery = true;
console.log('setting true in load event listener');
});
temp.src = 'http://localhost:3000/assets/portfolio/00_characters/00_concept/cover.png';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment