| 123456789101112131415161718 |
- import { NgModule } from '@angular/core';
- import { RouterModule, Routes } from '@angular/router';
- import { LoginComponent } from './login/login';
- import { Register } from './register/register';
- import { ForgotPasswordComponent } from './forgot-password/forgot-password';
- const routes: Routes = [
- { path: '', redirectTo: 'login', pathMatch: 'full' },
- { path: 'login', component: LoginComponent },
- { path: 'register', component: Register },
- { path: 'forgot-password', component: ForgotPasswordComponent }
- ];
- @NgModule({
- imports: [RouterModule.forChild(routes)],
- exports: [RouterModule]
- })
- export class AuthRoutingModule { }
|