mirror of
https://github.com/BoostIo/Boostnote
synced 2026-01-09 06:59:20 +00:00
20 lines
488 B
JavaScript
20 lines
488 B
JavaScript
/* global angular */
|
|
angular.module('codexen.states')
|
|
.controller('AuthRegisterController', function ($auth, $log) {
|
|
var vm = this
|
|
vm.isEmpty = function (obj) {
|
|
for (var i in obj) if (obj.hasOwnProperty(i)) return false
|
|
return true
|
|
}
|
|
vm.signup = function () {
|
|
$auth.signup({
|
|
email: vm.email,
|
|
password: vm.password,
|
|
name: vm.name,
|
|
profileName: vm.profileName
|
|
}).then(function (data) {
|
|
console.log(data)
|
|
})
|
|
}
|
|
})
|