my front end uses Angular6, to call a method of Angular
after the page is loaded and tested in ngOnInit (), which seems to be executed before the page is loaded.
so what should I do if I want to execute a method of Angular6 after the page is all loaded?
has read the official documents and only has the following hooks on the life cycle:
constructor ()
ngOnChanges ()
ngOnInt ()
ngDoCheck ()
ngAfterContentInit ()
ngAfterContentChecked ()
ngAfterViewInit ()
ngAfterViewChecked ()
ngOnDestory ()
ngAfterContentInit () and ngAfterViewInit ()
have been tested, and neither of them is
thanks any help!