【发布时间】:2020-10-28 10:32:27
【问题描述】:
我正在尝试通过 ng-bootstrap 在表中应用搜索。但是异步管道中有一个错误 ="InvalidPipeArgument: '[object Object],[object Object],[object Object],[object Object],[object Object]' for pipe 'AsyncPipe'" 我已应用与显示在 ng-botstrap 网站上。
<table class="table table-striped">
<thead class="thead-dark">
<tr>
<th>S.No.</th>
<th>Name</th>
<th>Email</th>
<th>Date Of Birth</th>
<th>Contact Number</th>
<th>Image</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<tr *ngFor=" let recentDetails of user$ | async; index as i ">
<td >{{i+1+((tableModel.Page-1)*tableModel.pageSize)}}</td>
<td ><ngb-highlight [result]="recentDetails.name" [term]="filter.value"></ngb-highlight></td>
<td ><ngb-highlight [result]="recentDetails.email" [term]="filter.value"></ngb-highlight></td>
<td ><ngb-highlight [result]="recentDetails.dateOfBirth" [term]="filter.value"></ngb-highlight></td>
<td ><ngb-highlight [result]="recentDetails.contactNumber" [term]="filter.value"></ngb-highlight></td>
<td><img src="https://localhost:44342/Images/{{recentDetails.userImageGuid}}"></td>
<td> <button class="btn btn-warning" (click)="editUserDetails(recentDetails.email)">Edit</button>
<button class="btn btn-danger" (click)="deleteRow(recentDetails.id,i)">Delete</button>
</td>
</tr>
</tbody>
</table>
请帮帮我。 提前谢谢。
【问题讨论】:
标签: html angular typescript bootstrap-4 ng-bootstrap