Skip to content

Commit

Permalink
visit planner- added visiotor directive picker. issue EazeAI#81 pipel…
Browse files Browse the repository at this point in the history
…ine-5 also added seccionCtrl.
  • Loading branch information
swatikiran123 committed Mar 15, 2016
1 parent fae35f6 commit 5a3b310
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions public/g/www/mods/sessions/sessionsCtrl.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
angular.module('sessions', [])

.controller('sessionsCtrl', function($scope, $routeParams, $http) {
$http.get('/api/v1/secure/visits/' + $routeParams.id + '/sessions').success(function(response) {
$scope.scheduleList = response;
});
})

.controller('sessionCtrl', function($scope, $routeParams, $http) {
console.log("session controller running");
$http.get('/api/v1/secure/visitSchedules/' + $routeParams.id).success(function(response) {
$scope.session = response;
});
});

0 comments on commit 5a3b310

Please sign in to comment.