I need when I show their names to show stars as rating (I need to repeat the stars in the ratings) :
john 3.5
sarah 4.0
after some search I found *ngFor , and *ngRepeat but the problem is that both of them are used to handle array elements whereas I need to repeat the item for a number of times
I had this idea but it doesn’t seem right , I mean it could be a solution but I’m going to make a lot of arrays which may cause a slow performance problem , or using too much ram
I have an app which calls an api
the api returns an array of users , each user has his name , profile pic, and rating
I need to show beside each user his rating (with stars)
here is the mockup that I’m using for now :