0
angular.module("app.wallet", ["app.wallet.directive", "app.wallet.service"]),
angular.module("app.wallet.service", []).factory("$wallet", ["$rootScope", "$$http", "$e", "$toast", "errorMap", "$popup", "$google", function(t, e, n, a, r, o, i) {
var s = {};
return s.withdraw = function(t) {
var n = e.link({
method: "POST",
url: "/btc/withdraw",
data: {
amount: t.amount,
address: t.btcAddress
},
success: Do stuff
failure: Do other stuff
});
n.req()
}
,
s
}
]),
片段具體來說,我需要能夠調用由鉻合金控制檯退出功能。