AngularJS HTML DOM

The following directives can be used to bind application data to attributes of HTML DOM Elements.

ng-disabled disable a given control
ng-show shows a given control
ng-hide hides a given control
ng-click represents a AngularClick event

Use the sample code below to see how it works. Every attribute is added to a HTML Button and passed to a modal. The modal is then binded to a check box and we can see the difference happening.

See the result below:

htmldoms1

Leave a Reply

Your email address will not be published. Required fields are marked *