Wallet/src/js/controllers/buyandsellController.js

19 lines
523 B
JavaScript
Raw Normal View History

2017-01-19 13:16:29 -03:00
'use strict';
2017-06-14 16:14:51 +09:00
angular.module('copayApp.controllers').controller('buyandsellController', function($scope, $ionicHistory, buyAndSellService, lodash, externalLinkService) {
2017-01-19 13:16:29 -03:00
$scope.$on("$ionicView.beforeEnter", function(event, data) {
2017-01-30 18:04:17 -03:00
$scope.services = buyAndSellService.get();
2017-01-19 13:16:29 -03:00
2017-06-14 16:14:51 +09:00
$scope.openExternalLink = function(url) {
externalLinkService.open(url);
}
2017-06-12 18:41:11 +09:00
$scope.$on("$ionicView.enter", function(event, data) {
2017-06-14 16:14:51 +09:00
2017-06-12 18:41:11 +09:00
});
2017-01-30 18:04:17 -03:00
if (lodash.isEmpty($scope.services))
$ionicHistory.goBack();
2017-01-19 13:16:29 -03:00
});
});