ng-repeat on two arrays

前端 未结 3 1023
刺人心
刺人心 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:28

    This is how it worked for me:

    
        Buy {{name}} for {{product.prices[$index]}}
    
    

    I had both product.names and product.prices of same size

提交回复
热议问题