Ananthakrishna
Ananthakrishna

Reputation: 517

Is there a way to load he page only after all the data are fetched in angular?

I am working on an angular project with landing pages. So when I integrate with the apis for different graphs on that page. But in initial loading, the datas are not fetched before the page is loaded i have to refresh the page several times to get the data. Is there any way to load the page only after the data is loaded?

Upvotes: 1

Views: 1542

Answers (1)

Gérôme Grignon
Gérôme Grignon

Reputation: 4228

You can use Resolvers so the routing will only occur after the data is fetched.

Upvotes: 4

Related Questions