ng-repeat on two arrays

前端 未结 3 1065
刺人心
刺人心 2021-01-12 00:49

I want to do a ng-repeat on an array which is composed of two arrays, like this :

[titles: [], links: []]

My arrays (titles and links) ha

3条回答
  •  醉酒成梦
    2021-01-12 01:22

    If the length is the same, then make it an object rather than two arrays.

    plunker

    
      
  • {{movie.t}} located in {{movie.l}}
提交回复
热议问题