I Want to apply a css class say 'headerStyle' but also change the color attribute defined in 'headerStyle' when the user choose a color from color picker like this. The catch is that I only want to use ng-class. Is it possible to be able to do it using only ng-class, I have done the same thing using mixture of class and ng-style but wish to do it using ng-class only.
HTML Code :
<input colorpicker type="text" ng-model="headerColor"> 
I tried like this but not working - Header Div :
<div ng-class="[headerStyle:true, {'background-color' : headerColor}]">
and also like this-
<div ng-class= "{headerStyle:true, 'background-color' : headerColor}">
Here is my css class headerStyle -
 .headerStyle {
       font-family: Helvetica, Arial, sans-serif !important;
       padding-top: 4px;
       font-size: 15px;
       color: #ffffff;
       text-align: center;
       text-shadow: #666666 1px 1px 1px;
       line-height: 16px;
       border: none;
  }
Thanx in Advance

