I make a request and get a result of products in this JSON format:
[{
"Id": 1092,
"Name": "Product Name",
"ItemNumber": 11111111111,
"PictureUrl": "http://www.bealecorner.com/trv900/respat/color-chart.png",
"Categories": [{
"Code": "43",
"Label": "CatName"
}],
"Rating": 5,
"NumberOfRatings": 1,
"ProductLanguage": "en"
}]
My html:
<div class="item columns large-3 medium-4 small-6 xsmall-12 medium-offset-" column="3" column-size-class="small" ng-repeat="product in products | filter:filters.Categories.Code">
<div class="product content-item">
<figure><img src="{{product.PictureUrl}}"></figure>
<div class="info">
<p class="title">{{product.Name}}</p>
<p class="subtitle"></p>
<div class="mui-product-tile-footer">
<div class="mui-js-rating" style="display: block;">
<div class="mui-rating is-small" title="Bewertung: 3">
<i ng-class="{true: 'star-on-png', false: 'star-off-png'}[product.Rating >= 1]"></i>
<i ng-class="{true: 'star-on-png', false: 'star-off-png'}[product.Rating >= 2]"></i>
<i ng-class="{true: 'star-on-png', false: 'star-off-png'}[product.Rating >= 3]"></i>
<i ng-class="{true: 'star-on-png', false: 'star-off-png'}[product.Rating >= 4]"></i>
<i ng-class="{true: 'star-on-png', false: 'star-off-png'}[product.Rating === 5]"></i>
</div>
<div class="mui-rating-counter is-small" aria-label="1 Bewertung"><span>{{product.NumberOfRatings}}</span></div>
</div>
</div>
</div>
<a href="#">Produkt bewerten</a>
</div>
</div>
Now I was wondering what is the most simple way of adding a pagination. I have already informed myself about Angular Bootstrap UI repository and I don't want to use that.