# ngModel

*noun*

say it: **“EN-JEE MOD-ul”** **/ˌɛn ˈdʒiː ˈmɒdəl/**

An Angular directive that ties a form field to a component value both ways.

## What is **ngModel** in Angular?

**ngModel** — A directive from `FormsModule` that ties a form field to a component value both ways: typing changes the value, and changing the value updates the field. It's written `[(ngModel)]`.

```html
<input type="number" [(ngModel)]="quantity">
<p>{{ quantity }} in the cart</p>
```

## In a sentence

- “With **ngModel** on the quantity box, the box and the count always match.”

Level: Apprentice · [More Angular terms at this level](https://www.ask-codey.com/glossary?category=angular&level=2)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/ngmodel
