Semaphore/public/js/controllers/user/user.js
2015-06-02 15:25:19 +02:00

12 lines
229 B
JavaScript

define([
'app'
], function(app) {
app.registerController('UserCtrl', ['$scope', '$state', function($scope, $state) {
$scope.delete = function () {
$scope.user.delete();
$state.transitionTo('users.list');
}
}]);
});