I have imported both FormsModule, and ReactiveFormsModule in my app.module, html should be correct hopefully,
**Inside app.module:**
@NgModule(
declarations: [
AppComponent,
],
imports: [
BrowserModule,
FormsModule,
HttpModule,
ReactiveFormsModule,
RouterModule.forRoot(ROUTES, { useHash: true })
],
})
**My HTML:**
<div class="col-xs-12">
<input #searchTextBox type="text" class="validate filter-input" [(ngModel)]="query" (keyup)="onKeyup(searchTextBox.value)">
<div class="suggestions" *ngIf="filteredList.length > 0">
<ul *ngFor="let item of filteredList">
<li>
<a (click)="select(item)">{{item}}</a>
</li>
</ul>
</div>
I get this error when i run npm run test:local, but it runs fine if I do npm start. I use multiple [(ngModel)] and they all have this same problem, I am just using this one for example.
How can I fix this?