Initial OpenECOMP Portal commit
[portal.git] / ecomp-portal-FE / client / bower_components / angular-cache / build_examples / r.js / main.js
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/r.js/main.js b/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/r.js/main.js
new file mode 100644 (file)
index 0000000..0fb6e49
--- /dev/null
@@ -0,0 +1,22 @@
+require.config({
+  paths: {
+    angular: '../../bower_components/angular/angular',
+    'angular-cache': '../../dist/angular-cache',
+  },
+  shim: {
+    'angular': {
+      exports: 'angular'
+    }
+  }
+});
+
+require([
+    'angular',
+    'app'
+  ], function (angular, app) {
+    angular.element(document.getElementsByTagName('html')[0]).ready(function () {
+      // bootstrap the app manually
+      angular.bootstrap(document, ['app']);
+    });
+  }
+);