how to show loading indicator on page loading in angular 7 until all apis response?

前端 未结 3 1233
孤街浪徒
孤街浪徒 2021-02-10 10:06

I have 5 api calls in a page. some apis take 20 sec to give response. some take 30 sec to give response. some take 10 sec so, when first api gives its response, first api sets l

3条回答
  •  南方客
    南方客 (楼主)
    2021-02-10 10:48

    You can simply use a variable(s) to store API results then load the content based on it's existance:

    ...
    Loading...

提交回复
热议问题