Chronological order or code Execution in Ionic

I am the new comer in ionic frame work. I just want to know when I run ‘ionic serve’ in command prompt which files run first inside my project, which files run second. Actually, I want to know the chronological order of execution of files.

As the code is compiled down, it is only this:
index.html -> main.js

If you want to know how the Angular pieces are called, read this:
https://angular.io/guide/architecture
This applies to Ionic as well.

Also: Why?

I’m not convinced that you actually do. Web apps are reactive, and if you delve too deeply into execution order, you tend to write brittle apps that are unidiomatic, hard to maintain, have intermittent and difficult-to-reproduce bugs. I would suggest concentrating on writing apps that don’t care about any of this.