agneta-platform
Version:
Agneta Platform - Integrate and customize business applications
26 lines (19 loc) • 471 B
JavaScript
module.exports = function(options) {
var vm = options.vm;
var AccountList = options.AccountList;
var tokens = vm.tokens = {};
tokens.load = function() {
tokens.loading = true;
AccountList.model.tokenList({
accountId: vm.viewAccount.id
})
.$promise
.then(function(result) {
console.log(result);
vm.tokens.list = result.list;
})
.finally(function() {
tokens.loading = false;
});
};
};