1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-15 02:36:36 +00:00
Files
Boostnote/src/controllers/states/AuthSignInController.js
2015-06-10 03:14:44 +09:00

16 lines
362 B
JavaScript

/* global angular */
angular.module('codexen')
.controller('AuthSignInController', function ($auth, $rootScope) {
var vm = this
vm.signIn = function () {
$auth.login({
email: vm.email,
password: vm.password
}).then(function (data) {
console.log(data)
$rootScope.$broadcast('userSignIn')
})
}
})