AngularJs has some directives which are used to encapsulate AngularJs application data to a disabled attribute of the HTML elements.
Example: ng-disabled directive encapsulates the application data to the disabled attributes of HTML DOM element.
<div ng-app="" ng-init="mySwitch=true"> <p> <button ng-disabled="mySwitch">Click Me!</button> </p> <p> <input type="checkbox" ng-model="mySwitch"/> Button </p> <p>{{ mySwitch }}</p> </div>
Angular is one of the most current web development frameworks around the world. In almost every interview, you will have… Read More