diff options
Diffstat (limited to 'ecomp-portal-FE/client/bower_components/angular-cache/build_examples/browserify')
3 files changed, 23 insertions, 0 deletions
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/browserify/README.md b/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/browserify/README.md new file mode 100644 index 00000000..0d762e6d --- /dev/null +++ b/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/browserify/README.md @@ -0,0 +1 @@ +Running `browserify app.js > bundle.js` in this directory will produce `bundle.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 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'); +}); diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/browserify/index.html b/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/browserify/index.html new file mode 100644 index 00000000..9769ccd3 --- /dev/null +++ b/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/browserify/index.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html ng-app="app"> +<head> + <title>My App</title> + <!-- load bundled scripts --> + <script src="bundle.js"></script> +</head> +<body> +<h1>{{ test }}</h1> +</body> +</html> |