javascript - How to disable list item of dropdown in angular js -
this html file
this dropdown having 2 listitems password reset , send activation email want disable send activation email when current state= 'not ready'.
<div class="active-send-select" pull-left btn-group title="{{::'title.button.send' | translate}}"> <button class="btn dropdown-toggle" data-toggle="dropdown" ng-disabled="user.entity.isgeuser == true"> <i class="fa fa-envelope fa-lg"></i> <span class="action-button-text">{{::'label.button.send' | translate}}</span> <i class="icon-chevron-down pull-right"></i> </button> <ul class="dropdown-menu filter-state"> <li ng-disabled="currentstate == 'not ready'" ><a href="" ng-click="openconfirmationmodal()">{{::'label.dropdown.sendactivation' | translate}}</a></li> <li> <a href="" ng-click="onpasswordreset()"> {{::'label.dropdown.resetpassword' | translate}}</a> </li> </ul> </div>
this javascript code
$scope.currentstate = 'not ready';
Comments
Post a Comment