Commit 3e08e648 authored by Dennis Willers's avatar Dennis Willers 🏀

Fix Error in Header

parent ed45d4a5
Pipeline #273 passed with stages
in 7 minutes and 32 seconds
<mat-toolbar color="primary"> <mat-toolbar color="primary">
<span class="mousefinger" (click)="toStartpage()">Tabu</span>
<span>Tabu</span> <a>
<a href="router.navigate(['/overview'])"> <img class="mousefinger" style="display: inline" src="./assets/Icon.png" alt="logo" height="30px" width="30" (click)="toStartpage()"/>
<img style="display: inline;" src="./assets/Icon.png" alt="logo" height="30px" width="30"/> </a>
</a>
</mat-toolbar> </mat-toolbar>
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import {Router} from '@angular/router';
@Component({ @Component({
selector: 'app-header', selector: 'app-header',
...@@ -7,9 +8,12 @@ import { Component, OnInit } from '@angular/core'; ...@@ -7,9 +8,12 @@ import { Component, OnInit } from '@angular/core';
}) })
export class HeaderComponent implements OnInit { export class HeaderComponent implements OnInit {
constructor() { } constructor(private router: Router) { }
ngOnInit(): void { ngOnInit(): void {
} }
toStartpage(): void {
this.router.navigate(['']);
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment