Explain how will you show/hide buttons and enable/disable buttons conditionally?
Submitted by: MuhammadUsing 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>
Submitted by: Muhammad
<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>
Submitted by: Muhammad
Read Online Front End Developer (AngularJS) Job Interview Questions And Answers
Top Front End Developer (AngularJS) Questions
☺ | What is AngularJS? What are the key features of AngularJS? Is there any down-side of using AngularJS? |
☺ | What is an IIFE? |
☺ | Explain me your workflow when you create a web page? |
☺ | How can you add a method to a class already defined? |
☺ | Why is this project called "AngularJS"? Why is the namespace called "ng"? |
Top Scripting language Categories
☺ | AngularJS Interview Questions. |
☺ | Ext-JS Interview Questions. |
☺ | Dojo Interview Questions. |
☺ | Expert Developer JavaScript Interview Questions. |
☺ | jQuery Mobile Interview Questions. |