Angularjs seperate comma in ng-repeat

"variantAttributeses": [ { "name": "Operational Current Ie AC-15 at 230V", "displayType": "RadioButton", "options": "10A" }, { "name": "Size", "displayType": "RadioButton", "options": "S00" }, { "name": "Coil Voltage", "displayType": "RadioButton", "options": "24V AC, 110V AC, 230V AC, 24V DC, 110V DC, 220V DC" }, { "name": "Contacts", "displayType": "RadioButton", "options": "4NO, 3NO+1NC, 2NO+2NO" } ]
this

this is my responce ,how to print the options in the div one by one

It’s not at all clear what the question is here, or what you wish to achieve. Please could you clarify what you need help with?

to split the options value in the json and to display using ng-repeat one by one

You’d be better off processing the result in your controller and splitting the options string into an array. You want to keep that sort of logic out of your template or things can get messy fast.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.