Sunday, 18 August 2013

How to divide a json into several parts in AngularJS

How to divide a json into several parts in AngularJS

I was designing a waterfall page, and these days I'm getting started on
Angularjs. I wanna divide the json data into several parts to display wrap
the each in a different DIV. The whole data is in array, called items.
<div id="dym-waterfall"> <div class="dym" ng-repeat="item in items">
</div>
<div class="dym" ng-repeat="item in items"> </div>
<div class="dym" ng-repeat="item in items"> </div>
<div class="dym" ng-repeat="item in items"> </div>
</div>

No comments:

Post a Comment