walnut_launchpad.html/js/controllers/signInController.js

12 lines
377 B
JavaScript
Raw Normal View History

2017-08-08 22:23:19 -06:00
app.controller('SignInController', ['$scope', 'Auth', '$location', function ($scope, Auth, $location) {
2017-08-08 14:54:25 -06:00
var vm = this;
2017-08-08 22:23:19 -06:00
vm.sign_in = function () {
// Ask to the server, do your job and THEN set the user
var user = {
email: "john@doe.com"
};
Auth.setUser(user); //Update the state of the user in the app
$location.path('/launchpad-home');
2017-08-08 14:54:25 -06:00
};
}]);