feat: add settings page

This commit is contained in:
4gray committed 2020-09-21 22:29:22 +02:00
1 parent 2f86e43f10
commit 1a44ecd995
16 files changed
+211 -25

No files matched your search

@@ -0,0 +1,26 @@
import { Component, Input } from '@angular/core';
import { Router } from '@angular/router';
@Component({
selector: 'app-header',
templateUrl: './header.component.html',
styleUrls: ['./header.component.scss'],
})
export class HeaderComponent {
/** Title of the header */
@Input() title: string;
/** Subtitle of the header */
@Input() subtitle: string;
/** Creates an instance of SettingsComponent and injects angulars router module
* @param router angulars router
*/
constructor(private router: Router) {}
/**
* Navigates to the settings page
*/
openSettings(): void {
this.router.navigate(['/settings']);
}
}