19 lines
471 B
JavaScript
19 lines
471 B
JavaScript
'use strict';
|
|
|
|
angular.module('copayApp.controllers').controller('welcomeController', function($scope, $state, $timeout, $log, $ionicPopup, profileService) {
|
|
|
|
$scope.goImport = function(code) {
|
|
$state.go('onboarding.import.phrase', {
|
|
fromOnboarding: true,
|
|
code: code
|
|
});
|
|
};
|
|
|
|
$scope.createProfile = function() {
|
|
$log.debug('Creating profile');
|
|
profileService.createProfile(function(err) {
|
|
if (err) $log.warn(err);
|
|
});
|
|
};
|
|
|
|
});
|