I have an example application for exploring angular 2. In my example application it [(ngModel)]does not work. But when I remove the square brackets (ngModel), the screen loads, but the two-way binding does not work.
[(ngModel)]
(ngModel)
should i do anything to create [(ngModel)].
Your code probably doesn't have this import line in your module:
import { FormsModule } from '@angular/forms';
You also need to add FormsModule to the module import array:
@NgModule({ imports: [FormsModule, /*...*/ ], //... })
Source: https://habr.com/ru/post/1677225/More articles:Incorrect company name displayed in TestFlight messages - itunesconnectWhy does sequence iteration work in C macro? - c ++Go to PHP7.1 and MPDF Errors - Odd value found on line 30648 - mpdfHow to sort a list of objects with a property of another object in Java? - javaHuge PDF takes time to render while scrolling with pdfviewer.js - javascriptGet ng-template from angular 2 component - angular2-templateMigrate Realm migration to Android 7.1.2 - androidVisual Studio 2017 makes crazy indentation in CSS and Json - jsonVisual Studio 2017 file locking - visual-studioVisual studio 2017 disable css formatting unnecessary spaces - visual-studioAll Articles