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?
import { FormsModule } from '@angular/forms';
import { NgModule } from "@angular/core";
Import FormsModule & NgModule in app.module.ts
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments