search

Home  >  Q&A  >  body text

angular.js - angularJS中的ng-repeat

同志们,知道怎么通过ng-repeat按照json中性别的不同放到指定ul中吗?急!急!急!在线等。。。。

过去多啦不再A梦过去多啦不再A梦2744 days ago545

reply all(6)I'll reply

  • 阿神

    阿神2017-05-15 17:00:39

    You can use ng-if to make judgments. Just judge two ul templates in one

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-05-15 17:00:39

    Why not first divide the json into two groups of men and women, and then use repeat respectively?

    reply
    0
  • 大家讲道理

    大家讲道理2017-05-15 17:00:39

    Can I use a filter?

    reply
    0
  • 滿天的星座

    滿天的星座2017-05-15 17:00:39

    Divide into 2 groups. This is the easiest and fastest. ng-if does not approve

    reply
    0
  • PHPz

    PHPz2017-05-15 17:00:39

    Can you describe the problem clearly

    reply
    0
  • PHP中文网

    PHP中文网2017-05-15 17:00:39

    It seems that it can only be filtered through channels. Different ULs have different genders

    reply
    0
  • Cancelreply