diff --git a/src/app/pages/auth/auth-routing.module.ts b/src/app/pages/auth/auth-routing.module.ts index 3ce03b0..7de6a4d 100644 --- a/src/app/pages/auth/auth-routing.module.ts +++ b/src/app/pages/auth/auth-routing.module.ts @@ -2,6 +2,8 @@ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { AuthComponent } from './auth.component'; import { SigninComponent } from './signin/signin.component'; +import { SignupComponent } from './signup/signup.component'; +import { ResetPasswordComponent } from './reset-password/reset-password.component'; const routes: Routes = [ { @@ -10,6 +12,8 @@ const routes: Routes = [ children: [ { path: '', redirectTo: 'signin' }, { path: 'signin', component: SigninComponent }, + { path: 'signup', component: SignupComponent }, + { path: 'reset-password', component: ResetPasswordComponent }, ] } ]; diff --git a/src/app/pages/auth/auth.module.ts b/src/app/pages/auth/auth.module.ts index 3de9a6d..b93bf59 100644 --- a/src/app/pages/auth/auth.module.ts +++ b/src/app/pages/auth/auth.module.ts @@ -1,25 +1,23 @@ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RouterModule, Routes } from '@angular/router'; -import { AuthComponent } from 'app/pages/auth/auth.component'; -import { SigninComponent } from 'app/pages/auth/signin/signin.component'; +import { AuthComponent } from './auth.component'; +import { AuthRoutingModule } from './auth-routing.module'; +import { SigninComponent } from './signin/signin.component'; +import { SignupComponent } from './signup/signup.component'; +import { ResetPasswordComponent } from './reset-password/reset-password.component'; -export const appRoutes: Routes = [ - // { - // path: '', component: AuthComponent, children: [ - // { path: 'signin', component: SigninComponent }, - // ] - // } - { path: 'signin', component: SigninComponent }, -]; @NgModule({ imports: [ CommonModule, - RouterModule.forChild(appRoutes), + AuthRoutingModule, ], declarations: [ - SigninComponent + AuthComponent, + SigninComponent, + SignupComponent, + ResetPasswordComponent, ] }) export class AuthModule { } diff --git a/src/app/pages/auth/reset-password/reset-password.component.html b/src/app/pages/auth/reset-password/reset-password.component.html new file mode 100644 index 0000000..9c39093 --- /dev/null +++ b/src/app/pages/auth/reset-password/reset-password.component.html @@ -0,0 +1,3 @@ +
+ reset-password works! +
diff --git a/src/app/pages/auth/reset-password/reset-password.component.scss b/src/app/pages/auth/reset-password/reset-password.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/pages/auth/reset-password/reset-password.component.spec.ts b/src/app/pages/auth/reset-password/reset-password.component.spec.ts new file mode 100644 index 0000000..3f03471 --- /dev/null +++ b/src/app/pages/auth/reset-password/reset-password.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ResetPasswordComponent } from './reset-password.component'; + +describe('ResetPasswordComponent', () => { + let component: ResetPasswordComponent; + let fixture: ComponentFixture+ signup works! +
diff --git a/src/app/pages/auth/signup/signup.component.scss b/src/app/pages/auth/signup/signup.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/pages/auth/signup/signup.component.spec.ts b/src/app/pages/auth/signup/signup.component.spec.ts new file mode 100644 index 0000000..43e46a5 --- /dev/null +++ b/src/app/pages/auth/signup/signup.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { SignupComponent } from './signup.component'; + +describe('SignupComponent', () => { + let component: SignupComponent; + let fixture: ComponentFixture