ngModel
ngModel is an Angular directive that synchronizes a form control's value with an application model through two-way binding.
Pro Angular 16
ngModel is an Angular directive that binds a form control's value to an application model.
- How it is used
- Simplifies two-way synchronization between HTML form controls and component properties.
- How deep it goes
- Explains binding syntax, FormsModule setup, live updates, and signal limitations without descending into directive internals.
- Examples
- Uses Material checkboxes, product-editing inputs, JSON interpolation, and a Create button to demonstrate synchronized model changes.
- What you can do after
- Apply ngModel to synchronize form controls with component properties and submit the resulting values through event handlers.
Modern Angular
ngModel is an Angular directive that synchronizes a form control's value with a component property through two-way binding.
- How it is used
- Synchronizes login-form inputs with a standalone component's credentials object.
- How deep it goes
- Shows template bindings and the required FormsModule import, but does not explain directive internals or broader form architecture.
- Examples
- Uses email and password inputs in a standalone login component, with required-field feedback and authentication submission.
- What you can do after
- Apply it via FormsModule to synchronize standalone login inputs with component state.
Also covered in
Related concepts
- two-way bindingimplements · Two-way binding is a data-binding relationship in which changes to either of two corresponding values automatically update the other.
- directivekind of · A directive is a framework-specific instruction attached to markup that controls processing, rendering, or the behavior of an element or template.
- event bindinguses · Event binding is an association between an event and the expression or handler that responds when the event occurs.
- FormsModuleused by · FormsModule is an Angular module that provides directives, providers, and services for working with template-driven and reactive forms.
- property bindinguses · Declarative syntax that assigns the value of an expression to a target element or component property during rendering.
- template variableused by · A template variable is a named identifier in a template that refers to data, an element, or an object available during template processing.
Questions about ngModel
What is ngModel?
ngModel is an Angular directive that synchronizes a form control's value with an application model through two-way binding.
Which Manning books explain ngModel?
Pro Angular 16 and Modern Angular.
What is ngModel a kind of?
ngModel is a kind of directive. A directive is a framework-specific instruction attached to markup that controls processing, rendering, or the behavior of an element or template.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

