Skip to content

Commit 96d0659

Browse files
Broccofilipesilva
authored andcommitted
bug(route): fix the class names for --routing in ng new (#2435)
Fixes #2433
1 parent 7d7ef21 commit 96d0659

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/angular-cli/blueprints/ng2/files/__path__/app/app-routing.module.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ const routes: Routes = [];
88
exports: [RouterModule],
99
providers: []
1010
})
11-
export class <%= classifiedModuleName %>RoutingModule { }
11+
export class AppRoutingModule { }

packages/angular-cli/blueprints/ng2/files/__path__/app/app.module.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { BrowserModule } from '@angular/platform-browser';
22
import { NgModule } from '@angular/core';
33
import { FormsModule } from '@angular/forms';
44
import { HttpModule } from '@angular/http';<% if (routing) { %>
5-
import { <%= classifiedModuleName %>RoutingModule } from './<%= dasherizedModuleName %>-routing.module';<% } %>
5+
import { AppRoutingModule } from './app-routing.module';<% } %>
66

77
import { AppComponent } from './app.component';
88

@@ -14,7 +14,7 @@ import { AppComponent } from './app.component';
1414
BrowserModule,
1515
FormsModule,
1616
HttpModule<% if (routing) { %>,
17-
<%= classifiedModuleName %>RoutingModule<% } %>
17+
AppRoutingModule<% } %>
1818
],
1919
providers: [],
2020
bootstrap: [AppComponent]

0 commit comments

Comments
 (0)