Angular2 how to update an item inside an observable collection

前端 未结 2 1406
情歌与酒
情歌与酒 2021-02-07 19:40

Update, in short:

I am looking for the equivalent of doing something like this but for an Observable rather than a regular array:



        
2条回答
  •  说谎
    说谎 (楼主)
    2021-02-07 20:14

    You can do it in below ways

    • use | async pipe
    • create a private variable and in your subscribe block add value to that which will reflect there.

提交回复
热议问题