Split for ng repeat item?

前端 未结 3 849
一生所求
一生所求 2021-02-20 04:18

Simple question- if I have this in my controller:

$scope.somedata = \'Item 1, Item 2\'; // set from something else

is there a way to split some

3条回答
  •  清歌不尽
    2021-02-20 05:21

    I guess I'm too late, but why not simply do this:

    {{item}}

    works just fine.

    JSBin for evidence!

提交回复
热议问题