diff --git a/src/app.module.ts b/src/app.module.ts index 4083165..0871474 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -2,7 +2,7 @@ import 'zone.js'; import 'reflect-metadata'; -import './app.ts'; +import { AppModule as Ng1AppModule } from './app'; import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; @@ -48,7 +48,7 @@ export class AppModule { constructor(private upgrade: UpgradeModule) { } ngDoBootstrap() { - this.upgrade.bootstrap(document.body, ['accountant'], { strictDi: false }); + this.upgrade.bootstrap(document.body, [Ng1AppModule.name], { strictDi: false }); } } diff --git a/src/app.ts b/src/app.ts index 111395f..f3bdb5e 100644 --- a/src/app.ts +++ b/src/app.ts @@ -31,7 +31,7 @@ import AppConfig from './app.config.ts'; require('bootstrap-webpack!./bootstrap.config.ts'); -angular.module('accountant', [ +export const AppModule = angular.module('accountant', [ uiRouter, accountModule, loginModule,