javascript - Turning string with line jumps into li in AngularJS -


i have object property (string) coming database line jumps, looking this:

enter image description here

right now, when display in frontend shows this:

1223123 2121 3223 54545 1221 1221 

what need this:

<ul>  <li>1223123</li>  <li>2121</li>  ... </ul> 

is there way turn such string li using filter? thought string replace, assume wouldn't work.

something along these lines should work:

<ul>   <li ng-repeat="artist in artsts.split('\r')"> {{artist}} </li> </ul> 

Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -