App startup execution order


#1

Am I wrong to believe that logic in the @App file should execute before the logic in the rootPage? It doesn’t matter if I use ngOnInit() in the @App file, or create my own init() function and call it before I set the rootPage, all logic in the rootPage itself logs out to the console before that of my @App file.

Am I doing it wrong, or is my understanding of the apps lifecycle wrong?


#2

Bumping this in the hope somebody who understands the big picture in terms of overall applevel execution order will chime in!

Where do we put logic that we want executed prior to the first page loading?