我试图在我的 Angular 项目中制作一些自定义搜索过滤器,它工作正常,但在我的 vscode 中出现错误。在我之前的项目中,在我更新 cli 后它工作正常,但出现了这样的错误。我该如何解决这个错误?
提前致谢
类型“未知”不可分配给类型“any[] & Iterable”
我用的是角度11。
<section *ngIf="!spinner; else showspinner">
<div class="w-100 px-5">
<div class="p-3">
<label>Email</label>
<input
type="text"
name="email"
placeholder="Search By Email"
class="form-control"
id=""
[(ngModel)]="searchText"
/>
</div>
</div>
<div class="table-responsive">
<table class="table table-hover table-bordered table-striped">
<thead>
<tr>
<th>Name</th>
<th>Email</th>
<th>Phone</th>
<th>Enrolment-Id</th>
<th>Course</th>
<th>Python/Sql</th>
<th>Statistics</th>
<th>ML</th>
<th>Mid-Term Objective</th>
<th>Mid-Term Subjective</th>
<th>Final Assessment</th>
<th>Project Ability</th>
<th>Internship Ability</th>
<th>Live Session Attendance</th>
<th>Internship Attendance</th>
<th><a> view </a></th>
<th><a> Downlode </a></th>
</tr>
</thead>
<tbody>
<tr *ngFor="let item of response …Run Code Online (Sandbox Code Playgroud)