Monday, 25 April 2016

How to display a section based on presence of elements in array ?


AngularJS
Display a section based on presence of elements in array

Example
<div class="imageSection" ng-show="product.images.length!=0">
    <ul>
       <li ng-repeat="image in product.images">
               <img ng-src="{{image}}" />
       </li>
    </ul>
</div>

No comments:

Post a Comment

Note: only a member of this blog may post a comment.