Reputation: 25
I have tried NG-STYLE and apparently it seems to be working. However, I need to put the percentage character (%) after bringing the data from the CONTROLLER.
<div class="progress progress-mini">
<div ng-style="{'width' : project.project_completion '%'}">
</div>
</div>
However, I think I have put that % sign in a wrong way.
What could be the best practice to put a character after bring the data from the Controller?
Thank you in advance!
Upvotes: 0
Views: 44
Reputation: 3232
You have used wrong concatenation:
<div class="progress progress-mini">
<div ng-style="{'width' : project.project_completion+'%'}">
</div>
</div>
Upvotes: 2