Search code examples
angularpageload

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?


Solution

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