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

  ],

})


Posted in Labels: |

1 comments:

  1. Sujitkumar Says:

    Very Nice tutorial. Really helpful for a lot of information about ASP …. Please keep update some more…………

Post a Comment