mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-22 16:20:44 +01:00
12 lines
229 B
JavaScript
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');
|
||
|
}
|
||
|
}]);
|
||
|
});
|