title: Split for ng repeat item?
body: <p>Simple question- if I have this in my controller:</p>
  
  <pre><code>$scope.somedata = 'Item 1, Item 2'; // set from something else
  </code></pre>
  
  <p>is there a way to split somedata for my view in a ngRepeat expression?  Something like:</p>
  
  <pre><code>&lt;div ng-repeat="item in somedata | split(',')"&gt;{{item}}&lt;/div&gt;
  </code></pre>
  
  <p>which doesnt work...</p>
  
  <p>Or do I have to do</p>
  
  <pre><code>$scope.somedata = 'Item 1, Item 2'; // set from something else
  $scope.items = somedata.split(',');
  </code></pre>
  
  <p>and then</p>
  
  <pre><code>&lt;div ng-repeat="item in items&gt;{{item}}&lt;/div&gt;
  </code></pre>
  
  <p>I think I'm not really understanding what I can do in an expression in AngularJS.</p>