TG-118 : move OLA/.gitignore to OLA/backend/gitignore (import scripts file)
This commit is contained in:
27
frontend/app/scripts/controllers/login.js
Executable file
27
frontend/app/scripts/controllers/login.js
Executable file
@ -0,0 +1,27 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* @ngdoc function
|
||||
* @name frontendApp.controller:MainCtrl
|
||||
* @description
|
||||
* # MainCtrl
|
||||
* Controller of the frontendApp
|
||||
*/
|
||||
angular.module('clientApp')
|
||||
.controller('LoginCtrl', function ($scope, $state) {
|
||||
|
||||
$scope.login = login;
|
||||
|
||||
// Public methods -------------------
|
||||
|
||||
function login() {
|
||||
console.log('login');
|
||||
|
||||
$state.go('userspace');
|
||||
}
|
||||
|
||||
// Private methods ------------------
|
||||
});
|
||||
|
||||
})();
|
22
frontend/app/scripts/controllers/userSpace.js
Executable file
22
frontend/app/scripts/controllers/userSpace.js
Executable file
@ -0,0 +1,22 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
angular.module('clientApp')
|
||||
.controller('UserSpaceCtrl', ['$scope', '$state',
|
||||
function ($scope, $state) {
|
||||
|
||||
init();
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
function init() {
|
||||
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
// Public method -------------------------------------------------
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
}]);
|
||||
|
||||
})();
|
Reference in New Issue
Block a user