score:1

Accepted answer

If you can set a controller property in javascript return a bool if it is enabled/disabled then you can do the following:

<select ng-disabled="isDisabled">
    ...
</select>

score:1

Use the ng-disabled property to still show the object without hiding it. Add in your element:

ng-disabled="chartModel.length == 0"

Related Articles