Lets Have a fun with Technology.

BTemplates.com

Follow by Email

Thursday, July 6, 2017

Common Error in Angular2. Can't bind to 'ngModel' since it isn't a known property of 'input'


Common Error in Angular2. 
Can't bind to 'ngModel' since it isn't a known property of 'input'

This error you will received if you didn't included FormModule in your module.

Better way to resolve this defect is include FormModule in app.module.ts


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


@NgModule({

  imports: [

    FormsModule

  ],

})


0 comments:

Post a Comment