27 lines
496 B
JavaScript
Executable File
27 lines
496 B
JavaScript
Executable File
(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 ------------------
|
|
});
|
|
|
|
})(); |