blob: 78358a6c8219de8d4cf65f5e0ac774d4e75850fd (
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', 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;
/*$http.get('data.json').then( function (response) {
console.log(response.data.points);
$scope.points=JSON.parse(response.data.points);
});*/
});
|