Angular JS Interview Questions and Answers
Question: How will you show/hide buttons and enable/disable buttons conditionally?Answer:Using the ng-show and ng-disabled directives. <div class="dataControlPanel" ng-show="accounts.releasePortfolios"> <div class="dataControlButtons"> <button class="btn btn-primary btn-small" ng-click="saveComments()" ng-disabled="disableSaveButton">Save</button> <button class="btn btn-primary btn-small" ng-click="releaseRun()" ng-disabled="disableReleaseButton">Release</button> </div> </div> |
Is it helpful?
Yes
No
Most helpful rated by users:
- What is AngularJS?
- Tell me does Angular use the jQuery library?
- Tell me can we use the open-source Closure Library with Angular?
- Why is this project called "AngularJS"? Why is the namespace called "ng"?
- Can you please explain what is testability like in Angular?