blob: b592990e5c6fafaf3f905d03e46b7261084c417c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
'use strict';
/* Controllers */
var p = new Point(1,2);
app.controller('pointCtrl', ['$scope', '$http', function($scope, $http){
var constList = [
{x: 10, y:20},
{x: 100, y:50},
{x: 100, y:200}
]
pathService.computePlaylist(dummyPoints,constList, 60);
$scope.points=dummyPoints;
/*$http.get('data.json').then( function (response) {
console.log(response.data.points);
$scope.points=JSON.parse(response.data.points);
});*/
}]);
|