Angular: Correct syntax for NgIf using async pipe with multiple template variables?

后端 未结 2 1254
别那么骄傲
别那么骄傲 2021-01-06 01:43

With Angular, we can subscribe to an Observable and assign the result of the async pipe to another variable by doing :

    *ngIf="(data$ | async) as data         


        
2条回答
提交回复
热议问题