a todos tengo este problema pero revisando en otros foros de esta misma paguina web. La solucion aparante es importar el FormsModule en app.module.ts
Adjunto mi codigo - app.module.ts
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
import { FormsModule } from '@angular/forms';
@NgModule({
declarations: [
AppComponent,
],
imports: [
BrowserModule,
AppRoutingModule,
FormsModule,
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
login.component.html
<div class="col-12">
<div class="single_billing_inp">
<label>Email Address <span>*</span></label>
<input type="email" [(ngModel)]="email" placeholder="[email protected]">
</div>
</div>
<div class="col-12">
<div class="single_billing_inp">
<label>Password <span>*</span></label>
<input type="password" [(ngModel)]="password" placeholder="type password">
</div>
</div>
Cual seria la solucion?