Last active
September 10, 2016 17:10
-
-
Save aconfee/b3a54e746d21448db5327063dfff209d to your computer and use it in GitHub Desktop.
Angular 2 Safari Bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div galleryScroll class='gallery-image-container hide-gallery' [class.show-gallery]='showGallery'></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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