Semaphore/public/js/controllers/playbook/playbook.js

16 lines
361 B
JavaScript
Raw Normal View History

2014-08-25 01:02:34 +02:00
define([
2014-08-25 12:35:49 +02:00
'app',
'services/playbooks'
2014-08-25 01:02:34 +02:00
], function(app) {
2014-08-25 12:35:49 +02:00
app.registerController('PlaybookCtrl', ['$scope', '$state', 'playbooks', function($scope, $state, playbooks) {
2014-08-25 01:02:34 +02:00
console.log($scope.playbook);
2014-08-25 01:24:40 +02:00
$scope.delete = function () {
$scope.playbook.delete();
2014-08-25 12:35:49 +02:00
playbooks.getPlaybooks(function () {
$state.transitionTo('homepage');
})
2014-08-25 01:24:40 +02:00
}
2014-08-25 01:02:34 +02:00
}]);
});