I've been attempting to add a border using ng-style, but I'm struggling to figure out how to concatenate the value from the scope
variable.
None of the methods below seem to be working for me:
<div ng-style="{'border-top' :'1px solid' + myClass}">Demo text</div>
<div ng-style="{'border-top' :'1px solid myClass'}">Demo text</div>
<div ng-style="{'border-top' :1px solid myClass}">Demo text</div>
Check out the Fiddle here