Comrades, do you know how to use ng-repeat to put the gender in json into the specified ul? urgent! urgent! urgent! Waiting online. . . .
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