Set name for Angular1 app module.
This commit is contained in:
parent
a7cee2891c
commit
6873b32005
@ -2,7 +2,7 @@
|
|||||||
import 'zone.js';
|
import 'zone.js';
|
||||||
import 'reflect-metadata';
|
import 'reflect-metadata';
|
||||||
|
|
||||||
import './app.ts';
|
import { AppModule as Ng1AppModule } from './app';
|
||||||
|
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { BrowserModule } from '@angular/platform-browser';
|
import { BrowserModule } from '@angular/platform-browser';
|
||||||
@ -48,7 +48,7 @@ export class AppModule {
|
|||||||
constructor(private upgrade: UpgradeModule) { }
|
constructor(private upgrade: UpgradeModule) { }
|
||||||
|
|
||||||
ngDoBootstrap() {
|
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');
|
require('bootstrap-webpack!./bootstrap.config.ts');
|
||||||
|
|
||||||
angular.module('accountant', [
|
export const AppModule = angular.module('accountant', [
|
||||||
uiRouter,
|
uiRouter,
|
||||||
accountModule,
|
accountModule,
|
||||||
loginModule,
|
loginModule,
|
||||||
|
Loading…
Reference in New Issue
Block a user