@@ -3,15 +3,29 @@ import { FormsModule } from '@angular/forms';
33import { BrowserModule } from '@angular/platform-browser' ;
44< % _ if ( filters . uirouter ) { - % >
55import { UIRouterModule } from 'ui-router-ng2' ; < % } % >
6- < % _ if ( filters . ngroute ) { - % > < % } % >
6+ < % _ if ( filters . ngroute ) { - % >
7+ import { RouterModule, Routes } from '@angular/router' ; < % } % >
78< % _ if ( filters . oauth ) { - % >
89import { DirectivesModule } from '../../components/directives.module' ; < % } % >
910
1011import { STATES } from './account.routes';
1112
1213import { LoginComponent } from './login/login.component';
13- import { SignupComponent } from './signup/signup.component';
1414import { SettingsComponent } from './settings/settings.component';
15+ import { SignupComponent } from './signup/signup.component';
16+
17+ < % _ if ( filters . ngroute ) { - % >
18+ const accountRoutes: Routes = [{
19+ path : 'login' ,
20+ component : LoginComponent ,
21+ //data: { title: 'Home' }
22+ } , {
23+ path : 'settings' ,
24+ component : SettingsComponent ,
25+ } , {
26+ path : 'signup' ,
27+ component : SignupComponent ,
28+ } ] ; < % } %>
1529
1630@NgModule ( {
1731 imports : [
@@ -21,7 +35,8 @@ import { SettingsComponent } from './settings/settings.component';
2135 UIRouterModule . forChild ( {
2236 states : STATES ,
2337 } ) , < % } % >
24- < % _ if ( filters . ngroute ) { - % > < % } % >
38+ < % _ if ( filters . ngroute ) { - % >
39+ RouterModule . forChild ( accountRoutes ) , < % } % >
2540 < % _ if ( filters . oauth ) { - % >
2641 DirectivesModule , < % } % >
2742 ],
0 commit comments