I am working on displaying the percentage of some activity using a horizontal div. The setup involves an outer div with a width of 100% and an inner div. I need to fill the inner div with a background color based on the percentage value obtained from the controller. However, my issue is that the percentage value is stored in a $scope variable called 'percentage'.
Here is the code snippet:
<div class="outerDiv">
<div class="innerDiv" style="'width':{{percentage}}"></div>
The value of {{percentage}}
comes from my scope. Unfortunately, the current code is not working as expected. What I aim to achieve is setting the style for the div using the value from the scope. Your assistance would be greatly appreciated.