Set name for Angular1 app module.
This commit is contained in:
parent
a7cee2891c
commit
6873b32005
@ -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 });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user