I have a CSS property value pair something like this:
style="width:60%"
This works fine. But when I try to concat something like this inside of ng-repeat:
<tbody ng-show="!vm.loading">
<tr ng-repeat="item in vm.currentBatches.items | orderBy: vm.sortBy.current_batch">
<td class="table-text" ng-show="!item.showRefreshForApiLoading">
<div class="progress progress-medium" ng-show="item.batch_status==='in progress'">
<div class="progress-inner">
<div class="segment" style="'width: "+item.succeeded_time_pct+"%">
<div class="bar status-ok bar-striped"></div>
</div>
</div>
</div>
<span class="progress-label status-ok" ng-show="item.batch_status==='in progress' && item.progressFlag !== 'NA'">In Progress</span>
Why does this not work ?
style="width: "+item.succeeded_time_pct+"%">
This says CSS property value expected,
What am I doing wrong?
ng-class(docs.angularjs.org/api/ng/directive/ngClass) directive.