title: How to split a string with angularJS
body: <p>I wanted to know if I can split a string simply in angularJS.
  I have my</p>
  
  <pre><code> $scope.test = "test1,test2";
  </code></pre>
  
  <p>in my controller and in my view,
  I wanted to do something like that</p>
  
  <pre><code>{{test[0] | split(',')}}
  {{test[1] | split(',')}}
  </code></pre>
  
  <p>I've seen a lot thing about input and ng-change calling a function in the controller that split the string or something with ng-list but nothing works in my case.</p>
  
  <p>thx to all.</p>