Skip to content

Commit

Permalink
fix(generate): stop default browser error from ng new --routing
Browse files Browse the repository at this point in the history
  • Loading branch information
Meligy committed Nov 3, 2016
1 parent 37a1225 commit 31fc6b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

const routes: Routes = [];
const routes: Routes = [
{
path: '',
children: []
}
];

@NgModule({
imports: [RouterModule.forRoot(routes)],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<h1>
{{title}}
</h1>
</h1><% if (routing) { %>
<router-outlet></router-outlet><% } %>

0 comments on commit 31fc6b4

Please sign in to comment.