angular.module.ng.$compileProvider.directive.ng-model

Description

Is directive that tells Angular to do two-way data binding. It works together with input, select, textarea. You can easily write your own directives to use ng-model as well.

ng-model is responsible for:

For basic examples, how to use ng-model, see:

Usage

as attribute
<input ng-model>
   ...
</input>
as class
<input class="ng-model">
   ...
</input>