InterviewSolution
Saved Bookmarks
| 1. |
AngularJS HTML DOM |
|
Answer» AngularJS HTML DOM The ng-disabled DirectiveWe use ng-disabled directive to binds AngularJS application data to disabled attributes of HTML elements. Below is the example which helps you understand ng-disabled directive:- ![]() Below are the 3 point for above images (1)As in above figure ng-disabled directive binds the application data myTestSwitch to the HTML BUTTON disabled attribute. (2)And ng-model directive binds the value of HTML checkbox element to the value of myTestSwitch. (3)If values of myTestSwitch evalutes to true the button will be disabled. The ng-show DirectiveWe use this ng directive to either SHOWS or hides an HTML elements. Below example will helps you to under that:- ![]() In above image we will use ng-show to DISPLAY some value by putting as "true" then it is visible if you PUT as "false" it will hide the values The ng-hide DirectiveAs we use ng-show in similar way we will use ng-hide directive to hide some values
|
|