title: AngularJS Enable / Disable Dropdown based on the variable
body: <p>I have a Dropdown on the CreateTask.cshtml page as below.</p>
  
  <pre><code>&lt;select class="form-control input-sm" id="analysisType" name="analysisType" ng-model="vm.analysisType" ng-options="analysistype.typeID as analysistype.typeName for analysistype in vm.analysisTypes" placeholder="Choose analysis type " required&gt;&lt;option value=""&gt;&lt;/option&gt;&lt;/select&gt;
  </code></pre>
  
  <p>Here I am setting a variable value conditionally to true or false on CreateTask.JS file. </p>
  
  <pre><code>vm.isNewTask =true;
  </code></pre>
  
  <p>If NewTask, the Dropdown should be enabled. If not NewTask, this Dropdown will be defaulted  to a value and should be disabled.
  I tried </p>
  
  <p>Thanks</p>