Full code is:
<input #inputSearch tabindex="0" [(ngModel)]="searchValue" (keydown.enter)="searchByClick()" type="text"> app.module is:
@NgModule({ declarations: [], imports: [ CommonModule, SharedModule, BrowserModule, AppRoutingModule ] )} export class AppModule {} What is wrong, why it does not work for me?
FormsModule. You can find more here: stackoverflow.com/a/43298039/2959415FormsModulein the listing of your AppModule's imports