Skip to content Skip to sidebar Skip to footer

Angular Ng-repeat And Images In A Row

In my view model I have an array of exactly 4 icon names. If I place the 4 images like so:

Solution 1:

Put the ng-repeat in the img tag like so

<div >
    <img ng-repeat="indicator in vm.indicator track by $index" ng-src="{{'/Content/img/' + indicator}}" alt="" />
</div>

That way you dont make multiple divs


Post a Comment for "Angular Ng-repeat And Images In A Row"