javascript - Turning string with line jumps into li in AngularJS -
i have object property (string) coming database line jumps, looking this:
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
Post a Comment