显示单击元素的多个加载指示符


CTO啊哦
2025-04-07 02:08:50 (1天前)


我有这个 ngFor

< div ngFor =“让notificacao of notificacoes; let i = index”>
{{notificacao.marketplace}}
{{notificacao.data_entrada |日期: ‘日/月/年’}}
{{notificacao ….

2 条回复
  1. 0# 日耀九洲 | 2019-08-31 10-32


    而不是只跟踪一个加载指标尝试使用如下数组:




    1. private identificadorLoading: string[] = [];

      ….

      testaLoadingExclusao(identificador, index){
      this.loading = true;
      this.identificadorLoading.push(identificador);
      }




    在你的HTML中:





    1. {{notificacao.marketplace}}
      {{notificacao.data_entrada | date:’dd/MM/yyyy’}}
      {{notificacao.data_entrada | date:’shortTime’}}
      {{notificacao.mensagem}}




    2. </code>

登录 后才能参与评论