Using state.go

This commit is contained in:
Gustavo Maximiliano Cortez 2016-08-23 08:31:48 -03:00
commit 894c206204
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF

View file

@ -1,10 +1,10 @@
'use strict'; 'use strict';
angular.module('copayApp.controllers').controller('bitpayCardConfirmationController', function($scope, $timeout, $location, bitpayCardService) { angular.module('copayApp.controllers').controller('bitpayCardConfirmationController', function($scope, $timeout, $state, bitpayCardService) {
$scope.ok = function() { $scope.ok = function() {
bitpayCardService.logout(function() { bitpayCardService.logout(function() {
$location.path('/bitpayCard/main'); $state.go('bitpayCard.main');
}); });
$scope.cancel(); $scope.cancel();
}; };