I am currently creating a leaderboard for users:
<div class="user">
<ul id="jogadores" *ngFor="let u of sortedUsers$; let i=index;" (click)="routeToUser(u.id)">
<li class="user">
<img class="gravatar" src="https://www.gravatar.com/avatar/{{u.imgUrl}}?d=https://www.1plusx.com/app/mu-plugins/all-in-one-seo-pack-pro/images/default-user-image.png" />
<div class="progressBar">
<span style="height: 100%;">
<i></i>
<b>{{sortedUsers$[i].points}}</b>
</span>
</div>
<span class="username">
<strong>{{sortedUsers$[i].username}}</strong>
</span>
</li>
</ul>
</div>
Each <ul>
element is populated with values from an array. I have been attempting to adjust the progress bar based on the user's points by changing the
<span style="height: 100%;">
value to {{sortedUsers$[i].points}}
. I even tried changing it to:
<span style="height: {{sortedUsers$[i].points}} %;">
and also using jQuery, but so far both attempts have been unsuccessful.