Angular Signals is a system that granularly tracks how and where your state is used throughout an application, allowing the framework to optimize rendering updates. https://angular.dev/guide/signals
@for (i of nbStars; track $index) {
= i ? img2 : img1 ">
}