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
AngularJS provides instructions for application data binding attributes HTML DOM elements.
ng-disabled instruction directly bind application data to HTML disabled property.
Examples to explain:
ng-disabled instruction bound application data "mySwitch" to HTML disabled property.
ng-model directive bind "mySwitch" to HTML input checkbox element content (value).
If mySwitch true, the button is unavailable:
If mySwitch is false, you can use the button:
ng-show instructions hide or display an HTML element.
ng-show command value based on the value to display (hide) HTML elements.
You can use an expression to calculate a Boolean value (true or false):
In the next chapter, we will all be hidden by clicking the button more instances of an HTML element. |
ng-hide command to hide or display HTML elements.