Wallet/js/controllers/createProfile.js
Matias Alejo Garcia 57299d675e balance Service
2014-11-30 22:41:21 -03:00

16 lines
453 B
JavaScript

'use strict';
angular.module('copayApp.controllers').controller('CreateProfileController', function($scope, $rootScope, $location, notification, pluginManager, identityService) {
identityService.goWalletHome();
$scope.loading = false;
$scope.createProfile = function(form) {
if (form && form.$invalid) {
$scope.error('Error', 'Please enter the required fields');
return;
}
identityService.create($scope, form);
}
});