I'm trying to add border through ng-style but not able to find out how can I concate value from scope variable.
Below all are not working.
<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>
See Fiddle
<div ng-style="{'border-top' :'1px solid '+myClass}">Demo text</div>