js/example-app/app/pages/auth/auth-page-routing.module.ts

24 lines
561 B
TypeScript
Raw Permalink Normal View History

2018-03-17 15:03:13 +00:00
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AuthPageComponent } from './auth-page.component';
import { SigninPageComponent } from './signin/signin-page.component';
const routes: Routes = [
{
path: '',
component: AuthPageComponent,
children: [
{ path: '', redirectTo: 'signin' },
{ path: 'signin', component: SigninPageComponent },
]
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class AuthPageRoutingModule { }