auth-routing-module.ts 636 B

123456789101112131415161718
  1. import { NgModule } from '@angular/core';
  2. import { RouterModule, Routes } from '@angular/router';
  3. import { LoginComponent } from './login/login';
  4. import { Register } from './register/register';
  5. import { ForgotPasswordComponent } from './forgot-password/forgot-password';
  6. const routes: Routes = [
  7. { path: '', redirectTo: 'login', pathMatch: 'full' },
  8. { path: 'login', component: LoginComponent },
  9. { path: 'register', component: Register },
  10. { path: 'forgot-password', component: ForgotPasswordComponent }
  11. ];
  12. @NgModule({
  13. imports: [RouterModule.forChild(routes)],
  14. exports: [RouterModule]
  15. })
  16. export class AuthRoutingModule { }