mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-12 20:16:15 -08:00
feat: add settings page
This commit is contained in:
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']);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user