From 6873b32005b4ffe04f599f981fe1c29eabe8959a Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Mon, 24 Jul 2017 19:51:30 +0200 Subject: [PATCH] Set name for Angular1 app module. --- src/app.module.ts | 4 ++-- src/app.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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,