Glidera - buy/sell

This commit is contained in:
Gustavo Maximiliano Cortez 2015-08-31 18:12:04 -03:00
commit e266ded1d1
10 changed files with 309 additions and 32 deletions

View file

@ -0,0 +1,13 @@
'use strict';
angular.module('copayApp.controllers').controller('buyGlideraController',
function() {
this.getBuyPrice = function(token, price) {
var self = this;
glideraService.buyPrice(token, price, function(error, sellPrice) {
self.sellPrice = sellPrice;
});
};
});

View file

@ -0,0 +1,13 @@
'use strict';
angular.module('copayApp.controllers').controller('glideraController',
function(glideraService) {
this.init = function(token) {
var self = this;
glideraService.getTransactions(token, function(error, txs) {
self.txs = txs;
});
};
});

View file

@ -0,0 +1,14 @@
'use strict';
angular.module('copayApp.controllers').controller('sellGlideraController',
function(glideraService) {
this.getSellPrice = function(token, price) {
var self = this;
glideraService.sellPrice(token, price, function(error, sellPrice) {
self.sellPrice = sellPrice;
});
};
});