diff --git a/public/app/app.js b/public/app/app.js
index fa54946feaf..b8c234a8617 100644
--- a/public/app/app.js
+++ b/public/app/app.js
@@ -1,7 +1,8 @@
define([
- './app2'
+ './grafana'
], function(app) {
'use strict';
// backward compatability hack;
+ console.log(app);
return app.default;
});
diff --git a/public/app/app2.ts b/public/app/app2.ts
deleted file mode 100644
index 60943992e3a..00000000000
--- a/public/app/app2.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-
-import {GrafanaApp} from 'app/grafana_app';
-
-export default new GrafanaApp();
diff --git a/public/app/boot.js b/public/app/boot.js
new file mode 100644
index 00000000000..b7931b451a2
--- /dev/null
+++ b/public/app/boot.js
@@ -0,0 +1,11 @@
+(function bootGrafana() {
+ 'use strict';
+
+ System.import('app/app').then(function(app) {
+ console.log(app);
+ app.init();
+ }).catch(function(err) {
+ console.log('Loading app module failed: ', err);
+ });
+
+})();
diff --git a/public/app/grafana_app.ts b/public/app/grafana.ts
similarity index 98%
rename from public/app/grafana_app.ts
rename to public/app/grafana.ts
index ed49fdc7535..d7ba62d1162 100644
--- a/public/app/grafana_app.ts
+++ b/public/app/grafana.ts
@@ -93,5 +93,6 @@ export class GrafanaApp {
console.log('Application boot failed:', err);
});
}
- }
+}
+export default new GrafanaApp();
diff --git a/public/app/systemjs.conf.js b/public/app/systemjs.conf.js
index ebdea9f07fa..d891c943c09 100644
--- a/public/app/systemjs.conf.js
+++ b/public/app/systemjs.conf.js
@@ -41,7 +41,7 @@ System.config({
meta: {
'vendor/angular/angular.js': {
- format: 'amd',
+ format: 'global',
deps: ['jquery'],
exports: 'angular',
},
diff --git a/public/views/index.html b/public/views/index.html
index 978f2adb2c7..19f0b25054c 100644
--- a/public/views/index.html
+++ b/public/views/index.html
@@ -57,25 +57,14 @@
};
-
+
-
-
-
+
-
-
[[if .GoogleAnalyticsId]]