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">


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

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

Related Query

More Query from same tag