![]() |
VOOZH | about |
In this article, we are going to see what is NgModel in Angular 10 and how to use it. NgModel is used to create a top-level form group Instance, and it binds the form to the given form value.
Syntax:
<Input [(NgModel)= 'name']>
NgModule: Module used by NgModel is:
Selectors:
Approach:
Example 1:
Output:
👁 ImageReference: https://v17.angular.io/api/forms/NgModel