/** * The home controller * * @param {$scope} $scope The $scope service from angular */ mainApp.controller('machineCreationCtrl', ['$scope', 'Compute', '$rootScope', '$timeout', 'Identity', function ($scope, Compute, $rootScope, $timeout, Identity) { $scope.name = "loic" // When we need to show details of machine $scope.$on('showMachineCreationEvent', function (eventName) { $('#machineCreationModal').modal({backdrop: false, keyboard: true}); }); }]);