Reputation: 517
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
Reputation: 4228
You can use Resolvers so the routing will only occur after the data is fetched.
Upvotes: 4