title: Angularjs - Split String issue
body: <p>I am temporarily devoid of seeing eyes.. The code below throws up an error</p>
  
  <blockquote>
    <p>Error: value.split is not a function</p>
  </blockquote>
  
  <p>Is threre an angularjs way of splitting a simple string</p>
  
  <pre><code>var value = "7,9";
  
  $scope.getTemplate = function(value){
  
      var values = value.split(",");
  
      value1 = values[0];
      value2 = values[1];
  
      $scope.templateid = value1;
      $scope.userid = value2;
  }
  </code></pre>