I'm currently working on a project where the car.images_length variable holds a specific number, let's say it's "4". My goal is to iterate through this variable and create 4 <li>
elements based on its value.
Through logging with JavaScript, I already verified that the car.images_length variable is indeed populated with a value.
Although this may seem like a beginner question, I'm relatively new to AngularJS.
I made an attempt at solving this issue, but unfortunately, I haven't been successful. Below is the code snippet I've been working on:
The HTML
<ul rn-carousel rn-carousel-buffered class="image" ng-repeat="pics in car.images_length">
<li><img src="images/cars/{{$index}}.jpg"></li>
</ul>