Set name for Angular1 app module.

This commit is contained in:
Alexis Lahouze 2017-07-24 19:51:30 +02:00
parent a7cee2891c
commit 6873b32005
2 changed files with 3 additions and 3 deletions

View File

@ -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 });
}
}

View File

@ -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,