I don't know if it's now for the sake of it, but i am stuck with a statement in the AngularJS documentation:
https://docs.angularjs.org/api/ng/directive/ngClass
"... If the expression evaluates to an array, each element of the array should either be a string as in type 1 or an object as in type 2. This means that you can mix strings and objects together in an array to give you more control over what CSS classes appear..."
"...<p ng-class="[style4, {orange: warning}]">Using Array and Map Syntax</p>..."
If you see my example on http://jsfiddle.net/angelinena/9p4k4wnx/5/ it works in all combinations, but not as an array with object and string in it.
<p><button class="btn btn-default" ng-click="conditionlead=true; classname='text-info'">Both 2</button></p>
<p ng-class="[{ 'lead': conditionlead == true }, classname ]">Classes applied as array with object and string</p>
Could you please tell me what i am doing wrong? Would be very grateful.