javascript - How to ng-repeat array inside of td so that td contains all array values -


i have number of arrays need ng-repeat inside of single td. example, {"locations":["san francisco, ca","los angeles, ca"]}, td needs like

<td>san francisco, ca,los angeles, ca</td>  

or {"locations":["boston","los angeles","london","new york","hongkong","washington","seattle","atlanta","san francisco","sydney","austin"]}, td needs

<td>boston,los angeles,london,new york, hongkong, washington, seattle, atlanta, san francisco, sydney, austin</td> 

i have tried number of different things, seem repeat td...here few things tried:

td(ng-repeat-start="location in currentschools.locations") {{location}} 

and

tr(ng-repeat="location in currentschools.locations")   td     | {{location}}   

you can use <span> tag inside <td> element , use ng-repeat on span element


Comments