I am trying to attach class dynamically in table's tr in Angular js like bellow :
ng-class="{
'text-light' : inventory.newValue.disabled,
'odd' : inventory.rowNumber % 2 === 1,
{{inventory.first? 'loc-'unit.attachNumber : 'bldg-'inventory.parent.attachNumber }}
}"
But it's not working,can anyone help me out how can I do this in AngularJs. Also I can't put this in controller.