Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added routes for authentication, generator-search, and statistics
  • Loading branch information
ema14006 committed Feb 1, 2019
1 parent 6345206 commit 2893cbb
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 deletions.
4 changes: 3 additions & 1 deletion src/app/app.component.html
@@ -1 +1,3 @@
<app-header></app-header>
<app-header></app-header>
<app-frontpage></app-frontpage>
<router-outlet></router-outlet>
10 changes: 9 additions & 1 deletion src/app/app.module.ts
Expand Up @@ -25,7 +25,15 @@ import { GeneratorSearchComponent } from './generator-search/generator-search.co
],
imports: [
BrowserModule,
BrowserAnimationsModule
BrowserAnimationsModule,
RouterModule.forRoot([

{path: 'authentication', component: AuthenticationComponent}
{path: 'generator-search', component: GeneratorSearchComponent}
{path: 'statistics', component: StatisticsComponent}

]),

],
providers: [],
bootstrap: [AppComponent]
Expand Down
4 changes: 1 addition & 3 deletions src/app/authentication/authentication.component.html
@@ -1,3 +1 @@
<p>
authentication works!
</p>
<button type="button" class="btn btn-primary m-4"><a routerLink = "/generator-search">Generator</a></button>
4 changes: 1 addition & 3 deletions src/app/frontpage/frontpage.component.html
@@ -1,3 +1 @@
<p>
frontpage works!
</p>
<button type="button" class="btn btn-primary m-4"><a routerLink = "/authentication">Login</a></button>
4 changes: 1 addition & 3 deletions src/app/generator-search/generator-search.component.html
@@ -1,3 +1 @@
<p>
generator-search works!
</p>
<button type="button" class="btn btn-primary m-4"><a routerLink = "/statistics">Statistics</a></button>

0 comments on commit 2893cbb

Please sign in to comment.