wallet listing working

This commit is contained in:
Matias Alejo Garcia 2014-09-03 01:25:08 -03:00
commit 6efa4f86de
14 changed files with 538 additions and 240 deletions

View file

@ -1,5 +1,19 @@
'use strict';
angular.module('copayApp.services').factory('pluginManager', function(angularLoad){
return new copay.PluginManager(config);
var pm = new copay.PluginManager(config);
var scripts = pm.scripts;
for(var ii in scripts){
var src = scripts[ii].src;
console.log('\tLoading ',src); //TODO
angularLoad.loadScript(src)
.then(scripts[ii].then || null)
.catch(function() {
throw new Error('Loading ' + src);
})
}
return pm;
});

View file

@ -1,3 +1,7 @@
'use strict';
angular.module('copayApp.services').factory('walletFactory', function(pluginManager){
console.log('[walletFactory.js.3]'); //TODO
return new copay.WalletFactory(config, copay.version, pluginManager);
});
angular.module('copayApp.services').value('walletFactory', new copay.WalletFactory(config, copay.version));