add angular-load

This commit is contained in:
Matias Alejo Garcia 2014-09-01 15:13:23 -03:00
commit 1ce3f82d0a
3 changed files with 22 additions and 1 deletions

View file

@ -115,6 +115,7 @@ module.exports = function(grunt) {
'lib/angular-foundation/mm-foundation.min.js',
'lib/angular-foundation/mm-foundation-tpls.min.js',
'lib/angular-gettext/dist/angular-gettext.min.js'
'lib/angular-load/angular-load.min.js',
],
dest: 'lib/angularjs-all.js'
},

View file

@ -50,6 +50,15 @@ var defaultConfig = {
updateFrequencySeconds: 60 * 60
},
verbose: 1,
plugins: {
googleDrive: true,
},
googleDrive: {
clientId: '1',
},
};
if (typeof module !== 'undefined')
module.exports = defaultConfig;

View file

@ -18,7 +18,13 @@ if (localConfig) {
}
}
var log = function() {
if (config.verbose) console.log(arguments);
}
var copayApp = window.copayApp = angular.module('copayApp', [
var modules = [
'ngRoute',
'angularMoment',
'mm.foundation',
@ -29,7 +35,12 @@ var copayApp = window.copayApp = angular.module('copayApp', [
'copayApp.services',
'copayApp.controllers',
'copayApp.directives',
]);
];
if (config.plugins.googleDrive)
modules.push('angularLoad');
var copayApp = window.copayApp = angular.module('copayApp', modules);
copayApp.config(function($sceDelegateProvider) {
$sceDelegateProvider.resourceUrlWhitelist([