I am facing a bit of a challenge with a seemingly simple task.
My goal is to showcase the number of credits completed by each student in my list using star icons. For instance, John ★, Sarah ★★, Ken ★, and Jared ★★★★.
The JSON data containing student information is bound to each student's div, allowing access through {{student.credits}}. However, using <template repeat>
doesn't appear to be an ideal solution for this scenario. I also considered adding a specific class like star2
and modifying the default icon CSS, but due to SVG usage for each icon, repetition isn't as straightforward as it would be with a standard image background.
If you have any insights or tips on how to address this issue, I would greatly appreciate your assistance!