diff options
Diffstat (limited to 'ecomp-portal-FE/client/bower_components/angular-cache/build_examples/browserify/app.js')
-rw-r--r-- | ecomp-portal-FE/client/bower_components/angular-cache/build_examples/browserify/app.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/browserify/app.js b/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/browserify/app.js new file mode 100644 index 00000000..6f841e7f --- /dev/null +++ b/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/browserify/app.js @@ -0,0 +1,11 @@ +var angular = require('angular'); + +angular.module('app', [ + // this is what you would do in a real app + // require('angular-cache') + + // for the example to work + require('../../dist/angular-cache.js') +]).run(function ($rootScope, CacheFactory) { + $rootScope.test = 'It works! Using ' + (CacheFactory ? 'angular-cache' : 'undefined'); +}); |