title: How to disabled option from ng-options using AngularJs?
body: <p>when user open modal window i am calling rest service to get boolean flag that is <code>data</code> in below code, Now if that flag is true i want to disable option in ng-options where id is <code>RA_ATTST_LANGUAGE</code>. How can i disabled dropdown option based on below logic ?</p>
  
  <p>main.html</p>
  
  <pre><code>&lt;select name="adminNotificationTypeCode" class="form-control" ng-model="messageNotificationDTO.adminNotificationTypeCode" required id="adminNotificationTypeCode" ng-change="attestationCheck()" ng-options="adminDataSource.id as adminDataSource.text disable when adminDataSource.id == 'RA_ATTST_LANGUAGE' &amp;&amp; disableRA_ATTST_LANGUAGE for adminDataSource in adminDataSource"&gt;
                              &lt;option value=""&gt;Select...&lt;/option&gt;
                          &lt;/select&gt;
  </code></pre>
  
  <p>main.js</p>
  
  <pre><code>function getAttestationLanValidation (){
            MessageAdminNotificationFactory.getAttestationLanValidation().then(function(response){
              if(response){
                $scope.disableRA_ATTST_LANGUAGE = response.data;
              }
            });
          };
  
             //Add new Notification
             $scope.addMessageNotification = function() {
                 $scope.messageNotificationModal.open().center();
                 $scope.clearNotificationForm();
                 getAttestationLanValidation();
             };
  </code></pre>
  
  <p>dropdown.json</p>
  
  <pre><code>[{
      "uid": null,
      "index": 0,
      "selected": null,
      "expanded": null,
      "id": "RA_PLTFRM_NOTIF",
      "text": "Platform Maintenance Notification",
      "parentId": null,
      "items": null
  }, {
      "uid": null,
      "index": 0,
      "selected": null,
      "expanded": null,
      "id": "RA_ATTST_LANGUAGE",
      "text": "Attestation Language",
      "parentId": null,
      "items": null
  }]
  </code></pre>