Semaphore/public/js/controllers/credential/credential.js

13 lines
281 B
JavaScript
Raw Normal View History

define([
'app'
], function(app) {
app.registerController('CredentialCtrl', ['$scope', '$state', function($scope, $state) {
console.log($scope.credential);
$scope.delete = function () {
$scope.credential.delete();
$state.transitionTo('credentials.list');
}
}]);
});