ngModel
(directive in module ng
)
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 ngModel as well.
ngModel is responsible for:
input, textarea or select
require,ng-valid, ng-invalid, ng-dirty, ng-pristine),form.For basic examples, how to use ngModel, see:
<input ng-model> ... </input>as class
<input class="ng-model"> ... </input>