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

18 lines
505 B
JavaScript
Raw Normal View History

2016-08-30 11:33:32 -03:00
'use strict';
2016-11-08 12:37:05 -03:00
angular.module('copayApp.controllers').controller('welcomeController', function($scope, $state, $timeout, $ionicConfig, $log, profileService, startupService, storageService) {
$ionicConfig.views.swipeBackEnabled(false);
2016-08-30 11:33:32 -03:00
$scope.$parent.$on("$ionicView.afterEnter", function() {
startupService.ready();
});
$scope.createProfile = function() {
$log.debug('Creating profile');
profileService.createProfile(function(err) {
if (err) $log.warn(err);
});
};
2016-08-30 11:33:32 -03:00
});