HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
ng-model instruction is used to bind application data to HTML value controller (input, select, textarea) of.
ng-model
directive can enter variable values and AngularJS domain created bindings.
Two-way binding, when you modify the value of the input field, the value of the property will also be AngularJS Review:
The above example, the message in the ng-show
property returns true
display case.
ng-model
directive provides status value (invalid, dirty, touched, error ) for the application data:
ng-model
instruction based on their states provide CSS classes for HTML elements:
ng-model
instruction based on the state form field to add / remove the following categories: