I am currently teaching myself Angular 4 and have a question regarding the following code snippet:
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="0" aria-
valuemin="0" aria-valuemax="100" style="width {{ item.percent_position}}%;">
{{ item.percent_position }}</div>
</div>
I am attempting to dynamically adjust the width of the progress bar based on the value of {{item.percent_position}}
When I try using [style]="width: {{ item.percent_position }}%;", I encounter this error:
Uncaught Error: Quotes are not supported for evaluation!
Statement: {{item.percent_position}}%;
Here is what I am aiming for: https://i.sstatic.net/99uC8.png
However, the current result with the existing code is shown here: https://i.sstatic.net/8GYcB.png