diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 78f9cb1..a809433 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -5,13 +5,16 @@ import {ProfileComponent} from "./profile/profile.component"; import {SqueakComponent} from "./squeak/squeak.component"; import {LoginComponent} from "./login/login.component"; import {RegisterComponent} from "./register/register.component"; +import {ProfileEditComponent} from "./profile-edit/profile-edit.component"; const routes: Routes = [ { path: '', redirectTo: 'home', pathMatch: 'full'}, { path: 'home', component: HomeComponent}, { path: 'profile', component: ProfileComponent}, { path: 'login', component: LoginComponent}, - { path: 'register', component: RegisterComponent} + { path: 'register', component: RegisterComponent}, + { path: 'edit', component: ProfileEditComponent} + ]; @NgModule({ diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 151d451..10c1930 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -15,6 +15,7 @@ import { ProfileComponent } from './profile/profile.component'; import { HomeComponent } from './home/home.component'; import { DataService } from "./services/data.service"; import { RegisterComponent } from './register/register.component'; +import { ProfileEditComponent } from './profile-edit/profile-edit.component'; @NgModule({ declarations: [ @@ -25,7 +26,8 @@ import { RegisterComponent } from './register/register.component'; LoginComponent, ProfileComponent, HomeComponent, - RegisterComponent + RegisterComponent, + ProfileEditComponent ], imports: [ BrowserModule, @@ -36,4 +38,6 @@ import { RegisterComponent } from './register/register.component'; providers: [SqueakerService, SqueakService, DataService], bootstrap: [AppComponent] }) + + export class AppModule { } diff --git a/src/app/home/home.component.html b/src/app/home/home.component.html index 1c353f3..3042f3f 100644 --- a/src/app/home/home.component.html +++ b/src/app/home/home.component.html @@ -24,12 +24,12 @@ -