,angular"/>

首页 > 解决方案 > 什么是

问题描述

谁能告诉我什么是

<!--bindings={
  "ng-reflect-ng-for-of": "[object Object],[object Object"
}--> ?

见图1

以及如何从 html 组件中的 *ngFor 循环中删除它?

*ngFor:

<tr class="result-table-data-tr" *ngFor="let active of actives" >
</tr>

和 ts 是:

export class ActivesComponent implements OnInit, AfterViewInit {

  private actives: any = [];

  constructor() { }

  ngOnInit() {

    this.actives = actives.data; // this is json

  }

  ngAfterViewInit(): void {
    actsTableDrop();
  }
}

标签: angular

解决方案


推荐阅读