Semaphore/public/js/controllers/user/user.js

12 lines
229 B
JavaScript
Raw Normal View History

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