How can I create dynamic radio buttons in angularjs
, using mobile numbers from this json array?
challengeSelectInfo:
[
{"mob_0" : "xxxxx1211"},
{"mob_1" : "xxxxx1211"},
{"mob_2" : "xxxxx1211"}
]
I attempted to use ng-repeat
and loop through challengeSelectInfo
, but the challenge I'm encountering is that the keys (mob_0, mob_1, mob_2) are different. This causes difficulty in generating dynamic radio buttons.
Any assistance would be greatly appreciated.
Thank you!