I have comma separated string like aaa,bb,cc,cc,dd,ee,ff,gg

i have comma separated string like aaa,bb,cc,cc,dd,ee,ff,gg, actually this is json response get from the server
i want to do remove the comma and represent in li attribute

  • aaa
  • bb
  • cc
  • dd
  • ee
  • ff
  • like this how can i do that?

    You will want to split that string into an array:


    Then you iterate over that array and output it whatever way you want.

    You can use ng-repeat. take a good look at ng-repeat function in angularjs…