Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I Have an Array that each member of it is, an array of objects. More detail: Picture
I want to use objects in ng-repeater. How do I do this?!

share|improve this question
    
use nested ng-repeat –  Waseem Bepari May 24 at 9:20

1 Answer 1

You can use nested ng-repeat for this.

$scope.storeCar = [
  [ {name: 'abc'}, {name: 'def'} ],
  [ {name: 'ghi'}]
];

And iterate over storeCar like this:

<ul>
  <li ng-repeat="cars in storeCar">
    <ul>
      <li ng-repeat="car in cars">
        {{car.name}}
      </li>
    </ul>
  </li>
</ul>
share|improve this answer
    
This solution not Working. thanks –  Hossein Ganjyar May 24 at 9:46
    
@HosseinGanjyar so if it doesn't work, could you insert source code of your storeCar object? –  kTT May 24 at 9:49
    
jsfiddle.net/ew3f33oc –  Hossein Ganjyar May 24 at 9:55
    
@HosseinGanjyar Check this out. jsfiddle.net/ew3f33oc/2 –  kTT May 24 at 10:08
    
My data isn't it. my data is array of arrays object. please check picture in above question. –  Hossein Ganjyar May 24 at 10:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.