我在component.ts的功能如下: getImage(name) {
this._productService.getImage(name).subscribe((response) => {
// ??? my problem is here
});
}
而且它在这里被称为 <tr *ngFor="let i of data">
<td>
在一个分量I可使用过滤我阵列以下: // Array of product objects
const result = products.filter(p => p.name.includes('val'));
和产品值保持相同的第一个值,但滤波值存储在result。 但在下面的代码,filter()过滤字符串本身的数组: // Array of strings
const result