Wallet/src/js/controllers/onboarding/welcomeController.js

19 lines
471 B
JavaScript
Raw Normal View History

2016-08-30 11:33:32 -03:00
'use strict';
angular.module('copayApp.controllers').controller('welcomeController', function($scope, $state, $timeout, $log, $ionicPopup, profileService) {
2016-08-30 11:33:32 -03:00
2016-09-01 12:10:08 -03:00
$scope.goImport = function(code) {
$state.go('onboarding.import.phrase', {
2016-09-01 12:14:21 -03:00
fromOnboarding: true,
2016-09-01 12:10:08 -03:00
code: code
});
};
$scope.createProfile = function() {
$log.debug('Creating profile');
profileService.createProfile(function(err) {
if (err) $log.warn(err);
});
};
2016-08-30 11:33:32 -03:00
});