diff options
author | Nicolas Bornand <nicolas74@gmail.com> | 2014-05-10 18:50:09 +0200 |
---|---|---|
committer | Nicolas Bornand <nicolas74@gmail.com> | 2014-05-10 18:50:09 +0200 |
commit | 469ba240d6a3e89888a171fb544bbe1fde9275d7 (patch) | |
tree | 3738f90be6d49d76b7f44ae864844fc43b7e6194 | |
parent | 1ff26076cddd1030f4dcf701de9364e8bd234074 (diff) | |
download | playGraph-469ba240d6a3e89888a171fb544bbe1fde9275d7.tar.gz playGraph-469ba240d6a3e89888a171fb544bbe1fde9275d7.tar.bz2 playGraph-469ba240d6a3e89888a171fb544bbe1fde9275d7.zip |
add path service
-rw-r--r-- | app/js/controllers.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/js/controllers.js b/app/js/controllers.js index b592990..78358a6 100644 --- a/app/js/controllers.js +++ b/app/js/controllers.js @@ -3,12 +3,12 @@ /* Controllers */ var p = new Point(1,2); -app.controller('pointCtrl', ['$scope', '$http', function($scope, $http){ +app.controller('pointCtrl', function($scope, $http, pathService){ var constList = [ {x: 10, y:20}, {x: 100, y:50}, {x: 100, y:200} - ] + ]; pathService.computePlaylist(dummyPoints,constList, 60); $scope.points=dummyPoints; @@ -16,4 +16,4 @@ app.controller('pointCtrl', ['$scope', '$http', function($scope, $http){ console.log(response.data.points); $scope.points=JSON.parse(response.data.points); });*/ -}]);
\ No newline at end of file +});
\ No newline at end of file |