title: Angular JavaScript coding issues
body: <p>Angular JS code.
  2 lists, each list has items inside,click on an item of a list, the item removed from that list and add to another</p>
  
  <p>looking for reusability:</p>
  
  <pre><code>$scope.move=function(index){
        $scope.list2.push($scope.list1[index]);
        $scope.list1.splice(index,1);
      }
  </code></pre>