Updated styling
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import {AfterViewInit, Component, EventEmitter, Input, OnDestroy, Output} from '@angular/core';
|
||||
import {ActivatedRoute, NavigationEnd, Router} from '@angular/router';
|
||||
import {filter, Subscription} from 'rxjs';
|
||||
import {NAVIGATION} from '../../misc/navigation';
|
||||
|
||||
@Component({
|
||||
selector: 'xxx-navbar',
|
||||
@@ -10,6 +11,11 @@ import {filter, Subscription} from 'rxjs';
|
||||
export class NavbarComponent implements AfterViewInit, OnDestroy {
|
||||
private sub!: Subscription;
|
||||
|
||||
links = {
|
||||
topLevel: NAVIGATION[0].children[0],
|
||||
other: NAVIGATION.slice(1)
|
||||
}
|
||||
|
||||
@Input() hamburger = true;
|
||||
|
||||
@Output() hamburgerClick = new EventEmitter<void>();
|
||||
@@ -18,7 +24,9 @@ export class NavbarComponent implements AfterViewInit, OnDestroy {
|
||||
|
||||
ngAfterViewInit() {
|
||||
this.sub = this.route.fragment.subscribe(frag => {
|
||||
console.log('fire');
|
||||
if(frag) this.scroll(frag);
|
||||
else this.scroll('top');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user