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">
<span>Tabu</span>
<a href="router.navigate(['/overview'])">
<img style="display: inline;" src="./assets/Icon.png" alt="logo" height="30px" width="30"/>
</a>
<span class="mousefinger" (click)="toStartpage()">Tabu</span>
<a>
<img class="mousefinger" style="display: inline" src="./assets/Icon.png" alt="logo" height="30px" width="30" (click)="toStartpage()"/>
</a>
</mat-toolbar>
import { Component, OnInit } from '@angular/core';
import {Router} from '@angular/router';
@Component({
selector: 'app-header',
......@@ -7,9 +8,12 @@ import { Component, OnInit } from '@angular/core';
})
export class HeaderComponent implements OnInit {
constructor() { }
constructor(private router: Router) { }
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