Initial OpenECOMP Portal commit
[portal.git] / ecomp-portal-FE / client / bower_components / angular-cache / build_examples / browserify / app.js
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 (file)
index 0000000..6f841e7
--- /dev/null
@@ -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');
+});