0

This is how the array is in the data:

$scope.persons = [{
 cc:["abqwQe12c", "iu63enWzy", "dj101OQaQ"]
},
 {
cc:["erie1wka", "irt2naszsd", "riger1OQ"]
}]

In html it displays as an array when called like this {{person.cc}}. But below doesn't give anything.

 <div ng-repeat = "person in persons"> 
   <div ng-repeat = "ccs in person"> 
    {{ccs.cc}} 
   </div>  
</div>  

1 Answer 1

3

You want the inner repeat to loop over the person.cc property array

 <div ng-repeat = "person in persons"> 
    <div ng-repeat = "ccs in person.cc"> 
       {{ccs}} 
     </div> 
 </div> 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.