Jose
Jose

Reputation: 1239

AngularJS - Display ng-repeat multi arrays

I have the following list with multiple array: http://hpics.li/8fcfac4

I would like the display the name with AngularJS. So I am doing:

<li data-ng-repeat="deals in filteredDestinations | startFrom:(currentPage - 1)*pageSize | limitTo:pageSize">{{deals.name}}</li>

It like an array of an array?!

Thanks for helping!

Upvotes: 0

Views: 113

Answers (2)

user3040068
user3040068

Reputation: 180

Your question is very hard to understand but I may have a solution for you. Since you have an array called images you will need to loop through that once more.

<li data-ng-repeat="deals in filteredDestinations | startFrom:(currentPage - 1)*pageSize |    limitTopageSize">
    <span ng-repeat="image in deals.images">
       {{image.name}}
    </span>
</li>

Upvotes: 1

Raju Mandapati
Raju Mandapati

Reputation: 691

You can do this.

<span ng-repeat="singleParent in parentArray">
    <span ng-repeat="childItem in singleParent.childArray">
        {{childItem.name}}
    </span>
</span>

Upvotes: 0

Related Questions