Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit 04fe120

Browse files
Rename app.module.(server|browser).ts to app.(server|browser).module.ts. Fixes #1228.
1 parent e2030fb commit 04fe120

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

templates/Microsoft.DotNet.Web.Spa.ProjectTemplates/angular/ClientApp/app/app.module.browser.ts renamed to templates/Microsoft.DotNet.Web.Spa.ProjectTemplates/angular/ClientApp/app/app.browser.module.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { NgModule } from '@angular/core';
22
import { BrowserModule } from '@angular/platform-browser';
3-
import { AppModuleShared } from './app.module.shared';
3+
import { AppModuleShared } from './app.shared.module';
44
import { AppComponent } from './components/app/app.component';
55

66
@NgModule({

templates/Microsoft.DotNet.Web.Spa.ProjectTemplates/angular/ClientApp/app/app.module.server.ts renamed to templates/Microsoft.DotNet.Web.Spa.ProjectTemplates/angular/ClientApp/app/app.server.module.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { NgModule } from '@angular/core';
22
import { ServerModule } from '@angular/platform-server';
3-
import { AppModuleShared } from './app.module.shared';
3+
import { AppModuleShared } from './app.shared.module';
44
import { AppComponent } from './components/app/app.component';
55

66
@NgModule({

templates/Microsoft.DotNet.Web.Spa.ProjectTemplates/angular/ClientApp/boot.browser.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'zone.js';
33
import 'bootstrap';
44
import { enableProdMode } from '@angular/core';
55
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
6-
import { AppModule } from './app/app.module.browser';
6+
import { AppModule } from './app/app.browser.module';
77

88
if (module.hot) {
99
module.hot.accept();

templates/Microsoft.DotNet.Web.Spa.ProjectTemplates/angular/ClientApp/boot.server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { APP_BASE_HREF } from '@angular/common';
55
import { enableProdMode, ApplicationRef, NgZone, ValueProvider } from '@angular/core';
66
import { platformDynamicServer, PlatformState, INITIAL_CONFIG } from '@angular/platform-server';
77
import { createServerRenderer, RenderResult } from 'aspnet-prerendering';
8-
import { AppModule } from './app/app.module.server';
8+
import { AppModule } from './app/app.server.module';
99

1010
enableProdMode();
1111

templates/Microsoft.DotNet.Web.Spa.ProjectTemplates/angular/webpack.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module.exports = (env) => {
4747
new webpack.optimize.UglifyJsPlugin(),
4848
new AotPlugin({
4949
tsConfigPath: './tsconfig.json',
50-
entryModule: path.join(__dirname, 'ClientApp/app/app.module.browser#AppModule'),
50+
entryModule: path.join(__dirname, 'ClientApp/app/app.browser.module#AppModule'),
5151
exclude: ['./**/*.server.ts']
5252
})
5353
])
@@ -68,7 +68,7 @@ module.exports = (env) => {
6868
// Plugins that apply in production builds only
6969
new AotPlugin({
7070
tsConfigPath: './tsconfig.json',
71-
entryModule: path.join(__dirname, 'ClientApp/app/app.module.server#AppModule'),
71+
entryModule: path.join(__dirname, 'ClientApp/app/app.server.module#AppModule'),
7272
exclude: ['./**/*.browser.ts']
7373
})
7474
]),

0 commit comments

Comments
 (0)