Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 4
    This works, but using ngModel is deprecated in Angular 6 and will be removed in Angular 7. angular.io/api/forms/FormControlName#use-with-ngmodel Commented Dec 6, 2018 at 20:30
  • 20
    The referenced Angular documentation does not announce the deprecation of ngModel, but the deprecation of ngModel for reactive Forms. It's still valid for all other use cases. Commented Mar 5, 2019 at 11:53
  • 3
    Make sure you import the FormsModule in your app Module so you can use ngModel! angular.io/guide/… Commented Jul 20, 2021 at 17:35