Sunday, 15 April 2018

If you get this type of following errors :



Can't bind to 'ngModel' since it isn't a known property of 'input' ” 


You just import the FormsModule in your's module file and also add the reference in imports array so that you can not get this type of error again



import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';

import { AppComponent } from './app.component';
import { SimpleComponent } from './simple/simple.component';


@NgModule({
declarations: [
AppComponent,
SimpleComponent
],
imports: [
BrowserModule,
FormsModule
],
providers: [],
bootstrap: [AppComponent]
})



AdSense

Chand

  मुझे चाँद देखना पसंद है, उसे चाँद सा दिखना पसंद है। वो भी अपने दाग नहीं छुपाती, आँखों में काजल, माथे पे बिंदी नहीं लगाती। होठों को उन्...

Follow