---
title: AngularJS ng-model Directive
---
# AngularJS ng-model Directive
------
With the ng-model directive you can bind the value of an input field to a variable created in AngularJS.
Example
```html
Name:
```
Two-Way Binding example
```html
Name:
You entered: {{name}}
```
More info @ [https://www.w3schools.com/angular/angular_model.asp](https://www.w3schools.com/angular/angular_model.asp)