From 98e97f63c0131e9a21ba620bf59603934c197165 Mon Sep 17 00:00:00 2001 From: tanshu Date: Tue, 15 May 2018 15:06:04 +0530 Subject: [PATCH] Manual bootstrapping --- brewman/static/app/app.module.ts | 4 ++++ brewman/static/index.html | 2 +- brewman/static/systemjs.config.js | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 brewman/static/app/app.module.ts diff --git a/brewman/static/app/app.module.ts b/brewman/static/app/app.module.ts new file mode 100644 index 00000000..cd6f468f --- /dev/null +++ b/brewman/static/app/app.module.ts @@ -0,0 +1,4 @@ +import * as angular from 'angular'; +import './overlord.app'; + +angular.bootstrap(document.body, ['overlord'], {strictDi: false}); diff --git a/brewman/static/index.html b/brewman/static/index.html index 382b4e35..e14b366d 100644 --- a/brewman/static/index.html +++ b/brewman/static/index.html @@ -1,5 +1,5 @@ - + diff --git a/brewman/static/systemjs.config.js b/brewman/static/systemjs.config.js index 7703f711..1276be1f 100644 --- a/brewman/static/systemjs.config.js +++ b/brewman/static/systemjs.config.js @@ -33,7 +33,7 @@ }; var packages = { - "app": {main: "overlord.app.js", defaultExtension: "js"}, + "app": {main: "app.module.js", defaultExtension: "js"}, "angular": {main: "index.js", defaultExtension: "js"}, "ngAnimate": {main: "index.js", defaultExtension: "js"}, "angular-animate": {main: "index.js", defaultExtension: "js"},