Using AngularJS Material, I am trying to apply md-colors=""
values using an expression similar to how it is done with ng-class=""
. However, I have been unsuccessful in achieving this.
For instance:
<md-button md-colors="{background:'accent-900-0.43' : mode == 'development'}" ng-click="setMode('development')">
development
</md-button>
The desired outcome is for the md-button to display the accent-900 background color only if the condition mode=='development'
evaluates to true.
Is it possible to use md-colors in this manner?