Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added routing functionality to website
  • Loading branch information
ema14006 committed Feb 1, 2019
1 parent 2893cbb commit 8913fe5
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/app/app.component.html
@@ -1,3 +1,2 @@
<app-header></app-header>
<app-frontpage></app-frontpage>
<router-outlet></router-outlet>
3 changes: 3 additions & 0 deletions src/app/app.module.ts
Expand Up @@ -28,9 +28,12 @@ import { GeneratorSearchComponent } from './generator-search/generator-search.co
BrowserAnimationsModule,
RouterModule.forRoot([

{path: '', component: FrontpageComponent}
{path: 'authentication', component: AuthenticationComponent}
{path: 'generator-search', component: GeneratorSearchComponent}
{path: 'statistics', component: StatisticsComponent}
{path: 'warnings', component: WarningsComponent}
{path: 'history', component: HistoryComponent}

]),

Expand Down
2 changes: 1 addition & 1 deletion src/app/authentication/authentication.component.html
@@ -1 +1 @@
<button type="button" class="btn btn-primary m-4"><a routerLink = "/generator-search">Generator</a></button>
<button type="button" class="btn btn-dark m-4 "><a routerLink = "/generator-search">Generator</a></button>
2 changes: 1 addition & 1 deletion src/app/frontpage/frontpage.component.html
@@ -1 +1 @@
<button type="button" class="btn btn-primary m-4"><a routerLink = "/authentication">Login</a></button>
<button type="button" class="btn btn-dark m-4"><a routerLink = "/authentication">Login</a></button>
2 changes: 1 addition & 1 deletion src/app/generator-search/generator-search.component.html
@@ -1 +1 @@
<button type="button" class="btn btn-primary m-4"><a routerLink = "/statistics">Statistics</a></button>
<button type="button" class="btn btn-dark m-4"><a routerLink = "/statistics">Statistics</a></button>
2 changes: 1 addition & 1 deletion src/app/header/header.component.html
Expand Up @@ -24,5 +24,5 @@
</div>

</nav>
<img src = "images/logo.png" class=" d-block img-fluid py-3 pl-3" alt="Responsive image" style = "width: 20%;">
<img src = "images/logo2.png" class=" d-block img-fluid py-3 pl-3" alt="Responsive image">
</header>

0 comments on commit 8913fe5

Please sign in to comment.