My website has a basic layout shown below:
|-------------------|
| HEADER |
|___________________|
|------||-----------|
| side || Main |
| bar || Content |
| || |
|------||------------
For routing and states, I am using Angular UI-router with resolvers to load data for specific states. Upon navigating to a state, all of the components appear at once after loading their respective data. Typically, the header and sidebar load quickly, while the main content takes longer.
I am wondering if it is possible to display them in a sequential order:
- Header
- Sidebar
- Main Content
Additionally, it would be ideal if the main content could include a loader as well. Initially, I considered adding code in the controller instead of using a resolver, but I believe the resolver approach is more elegant.