Angular 2 - Show loading-information when (observableData | async) is not yet resolved

前端 未结 6 2126
抹茶落季
抹茶落季 2020-12-29 05:13

just as the title says, I want to embrace the power of rxjs Observables.

What I do now:

// dataview.html
Loading data
6条回答
  •  清歌不尽
    2020-12-29 05:49

    Perhaps this could work for you. This show the data when the observable exists and there is async data. Otherwise shows a loading template.

    • {{ d.value }}
    Loading...

提交回复
热议问题