angularLoad

This commit is contained in:
Matias Alejo Garcia 2014-12-05 12:12:51 -03:00
commit 526bc53a7b
3 changed files with 2 additions and 19 deletions

View file

@ -1,18 +1,6 @@
'use strict';
angular.module('copayApp.services').factory('pluginManager', function(angularLoad) {
angular.module('copayApp.services').factory('pluginManager', function() {
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;
});