From 3bbf94f1c5bf2769770add53b292c6b5629d89f2 Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Fri, 16 Jun 2017 17:55:34 -0400 Subject: [PATCH] setting up user component --- src/app/app-routing.module.ts | 5 +++++ src/app/user/user.component.html | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index c2bb339..b6e8060 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -4,6 +4,7 @@ import { RouterModule, Routes } from '@angular/router'; import { AboutComponent } from './about/about.component'; import { LinksComponent } from './links/links.component'; import { ResumeComponent } from './resume/resume.component'; +import { UserComponent } from './user/user.component'; const routes: Routes = [ { @@ -17,6 +18,10 @@ const routes: Routes = [ { path: 'links', component: LinksComponent + }, + { + path: 'user/:index', + component: UserComponent } ];   diff --git a/src/app/user/user.component.html b/src/app/user/user.component.html index 5e7fd58..e20d2d6 100644 --- a/src/app/user/user.component.html +++ b/src/app/user/user.component.html @@ -1,3 +1 @@ -

- user works! -

+

User Component