I need to add two classes through one ng-class
definition
One looks like
{true: 'bar', false: ''}[someVar === 'bar']
And the other looks like
{foo: someOtherVar === 'foo'}
If I join them
<div ng-class="{true: 'bar', false: ''}[someVar === 'bar'],{foo: someOtherVar === 'foo'}">
it doesn't work. What is the correct syntax ?