The car.images_length variable has a number say for example "4"
. So i want to iterate and create 4 <li>
elements, depending on the variable.
I know that car.images_length has a value because I logged using javascript.
This is a very newbie question, but Im new to Angularjs.
Im trying to attempt it, but didn't have any luck, heres my code:
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>