Skip to content

Commit 6e3cdc8

Browse files
committed
refactor(client:router): move home config to MainModule
1 parent 8a9c1b3 commit 6e3cdc8

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Diff for: templates/app/client/app/app.module.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ import { provideAuth } from 'angular2-jwt';
7272

7373
import { AppComponent } from './app.component';
7474
import { MainModule } from './main/main.module';
75-
import { MainComponent } from './main/main.component';
75+
// import { MainComponent } from './main/main.component';
7676
import { DirectivesModule } from '../components/directives.module';
7777
import { AccountModule } from './account/account.module';
7878
import { AdminModule } from './admin/admin.module';
@@ -101,11 +101,11 @@ if(constants.env === 'development') {
101101
const appRoutes: Routes = [
102102
//{ path: 'crisis-center', component: CrisisListComponent },
103103
//{ path: 'hero/:id', component: HeroDetailComponent },
104-
{
105-
path: 'home',
106-
component: MainComponent,
107-
data: { title: 'Home' }
108-
},
104+
// {
105+
// path: 'home',
106+
// component: MainComponent,
107+
// data: { title: 'Home' }
108+
// },
109109
{ path: '',
110110
redirectTo: '/home',
111111
pathMatch: 'full'

Diff for: templates/app/client/app/main/main.module.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { SocketService } from '../../components/socket/socket.service';<% } %>
1414

1515
<%_ if(filters.ngroute) { _%>
1616
export const ROUTES: Routes = [
17-
{ path: '', component: MainComponent },
17+
{ path: 'home', component: MainComponent },
1818
];<% } %>
1919
<%_ if(filters.uirouter) { _%>
2020
export const STATES = [

0 commit comments

Comments
 (0)