diff options
Diffstat (limited to 'app/js/controllers.js')
-rw-r--r-- | app/js/controllers.js | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/app/js/controllers.js b/app/js/controllers.js index 56e22df..4b87295 100644 --- a/app/js/controllers.js +++ b/app/js/controllers.js @@ -3,7 +3,11 @@ /* Controllers */ var p = new Point(1,2); -app.controller('pointCtrl', function($scope){ - $scope.song= [ - ]; -}); +app.controller('pointCtrl', ['$scope', '$http', function($scope, $http){ + $scope.points=dummyPoints; + + /*$http.get('data.json').then( function (response) { + console.log(response.data.points); + $scope.points=JSON.parse(response.data.points); + });*/ +}]); |