I would like to pass typescript variable to style, I dont know if it's possible, there is code:
<tr *ngFor="let app of data">
<div class="progress_bar" style="width: {{app.applicationProgress}}%;"></div>
</tr>
My app.applicationProgress is set(checked)
Use the ngStyle directive. Documentation
Updated code:
<div class="progress_bar" [ngStyle]="{'width': app.applicationProgress + '%'}"></div>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With