Display loading while using Observable with Async pipe in template

后端 未结 3 881
感情败类
感情败类 2021-02-20 15:01

Situation: I am using FirebaseObjectObservable to populate my Ionic 2 (rc0) template. Template code:


  

{{(course | async)?.des

3条回答
  •  温柔的废话
    2021-02-20 15:42

    Lets say we have an observable meals$. We need to show loader when the observable is getting resolved(i.e fetching data). Below is the solution.

    //use the meal variable to show some data
    //Show your loader here

提交回复
热议问题