I have an angular DropDown , which is bound to scope variable, which is array. I would like disable the dropdown when the array empty.
HTML
<select class="qtDropDown" ng-model="chartModel" ng-options="riskimp.IndustryName for riskimp in riskImprovement" ng-change="buildChartData(chartModel)"></select>
JS
if( $scope.riskProfileModel.riskProfileData.RiskImprovment )
{
//I am doing some chart generation
}
else {
return null;
}
I am not sure how to disable the drop down. Can anybody suggest how to do that ?