I have written a code which is properly rendering the UI, but inside demo.component.html file I am getting an error as "property value expected" and "at-rule or selector expected". I tried changing it to [style.width]="{{d.graph_percentage}}" but it is not working.
demo.component.html:
<tr *ngFor="let d of data">
<td>
<div class="progress">
<div aria-valuemax="100" aria-valuemin="0"
aria-valuenow="100"
class="progress-bar progress-bar-striped {{d.graph_color}}"
role="progressbar"
style="width: {{d.graph_percentage}} ">
</div>
</div>
</td>
</tr>
demo.component.ts: It has json as:
public data = [{
"graph_percentage": "10%",
"graph_color": "bg-danger"
}];
here is ss from code editor: