Angular 2 - 删除使用异步管道的{ng}项

时间:2017-06-29 14:11:26

标签: angular

如何从使用异步管道的* ngFor中删除项目

我有这段代码

 <tg-template
    [template]="template"
    *ngFor="let template of templates$ | async">
  </tg-template>

我希望能够在用户点击删除按钮时删除项目。

问题是我没有引用模板数组我只有模板$ observable。

0 个答案:

没有答案
相关问题