Hi
I'd like to check if all images on the page are loaded.
With the following code i cant access the "contentLoaded"-variable within
the function i asigned to "window.onload",
contentLoaded = false;
ngAfterViewInit() {
window.onload = function() {
this.contentLoaded = true; // Property 'contentLoaded' does not exist on
type 'Window'
}
}
What is a proper Angular4 way to check at a given time, if
pagecontent/images are fully load?
Thanks for anwsers.
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.