I have the following object binded to the $scope of my Angularjs application
{name: 'Vampire Cafe', rating: 4, review: "Food was good, cafe was a bit dark..."}
I'd like to take the value of the rating and repeat a number of icon elements on my DOM totaling that value
So given the object above, the element would repeat 4 times, and the DOM would look like so:
<h3>Rating</h3>
<i class="icon-ios-star"></i>
<i class="icon-ios-star"></i>
<i class="icon-ios-star"></i>
<i class="icon-ios-star"></i>
How can I do this with a simple Angularjs expression?