angularjs - Angular JS Display String Array From Json -
<li ng-repeat="address in search.result.addresses"> <a href ng-click="selectaddress(address)"> {{address.addresslines}} </a> </li>
the problem {{address.addresslines}}
this string array value on screen printed out like
["address1","address2","address3","address4"]
but want printed like
address1,address2,address3,address4
i thing somthing work...
<li ng-repeat="address in search.result.addresses"> <a href ng-click="selectaddress(address)"> <span ng-repeat="a in address.addresslines"> {{a}},</span> </a> </li>
Comments
Post a Comment