Simple question, I hope.
I want to run a script when the Angular2 equivalent of $document.ready() is fired. What is the best way to achieve this?
I\'ve tried
the accepted answer is not correct, and it makes no sens to accept it considering the question
ngAfterViewInit will trigger when the DOM is ready
whine ngOnInit will trigger when the page component is only starting to be created