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

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -