Wallet/src/js/controllers/buyandsellController.js

11 lines
343 B
JavaScript
Raw Normal View History

2017-01-19 13:16:29 -03:00
'use strict';
2017-01-30 18:04:17 -03:00
angular.module('copayApp.controllers').controller('buyandsellController', function($scope, $ionicHistory, buyAndSellService, lodash) {
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-01-30 18:04:17 -03:00
if (lodash.isEmpty($scope.services))
$ionicHistory.goBack();
2017-01-19 13:16:29 -03:00
});
});