below is the code snippet, i am getting above error even after importing Formmodule, its not resolving
app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {AppComponent} from './app.component';
import{firstComponent} from './first/first.component';
import { SecondComponent } from './second/second.component';
@NgModule({
declarations: [
AppComponent,
firstComponent,
SecondComponent
],
imports: [
BrowserModule,
FormsModule
],
Sec.component.html
==================
<input type="text" [(ngmodel)]="TwoWayData" [value]="TwoWayData" name="" >
{{TwoWayData}}
Sec.component.ts
TwoWayData:string='Fortune';