0

Array code is 

$scope.points = [];