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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -