同志们,知道怎么通过ng-repeat按照json中性别的不同放到指定ul中吗?急!急!急!在线等。。。。
You can use ng-if to make judgments. Just judge two ul templates in one
Why not first divide the json into two groups of men and women, and then use repeat respectively?
Can I use a filter?
Divide into 2 groups. This is the easiest and fastest. ng-if does not approve
Can you describe the problem clearly
It seems that it can only be filtered through channels. Different ULs have different genders
You can use ng-if to make judgments. Just judge two ul templates in one
Why not first divide the json into two groups of men and women, and then use repeat respectively?
Can I use a filter?
Divide into 2 groups. This is the easiest and fastest. ng-if does not approve
Can you describe the problem clearly
It seems that it can only be filtered through channels. Different ULs have different genders