Explain How Will You Show/hide Buttons And Enable/disable Buttons Conditionally?
Answers

Question and Answer:

  Home  Front End Developer (AngularJS)

⟩ Explain how will you show/hide buttons and enable/disable buttons conditionally?

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>

 181 views

More Questions for you: