I have a JSON feed which provides a list of search results - The list contains products and regular pages. When rendering the list, the products has a different rendering than the regular pages, which means, different HTML if it is a product or a page. How would I achieve this? Is it possible to do something like:
<ul>
<li ng-repeat="item in items">
<div ng-if="item.type == 'product'>PRODUCT HTML HERE</div>
<div ng-if="item.type == 'page'>PAGE HTML HERE</div>
</li>
</ul>
If not, how to I achieve different renderings in a ng-repeat ?