Wallet/src/js/controllers/buyandsellController.js
magmahindenburg 4d2aa12b18 COntent updates
2017-07-07 11:36:04 +09:00

19 lines
523 B
JavaScript

'use strict';
angular.module('copayApp.controllers').controller('buyandsellController', function($scope, $ionicHistory, buyAndSellService, lodash, externalLinkService) {
$scope.$on("$ionicView.beforeEnter", function(event, data) {
$scope.services = buyAndSellService.get();
$scope.openExternalLink = function(url) {
externalLinkService.open(url);
}
$scope.$on("$ionicView.enter", function(event, data) {
});
if (lodash.isEmpty($scope.services))
$ionicHistory.goBack();
});
});