Select Git revision
header-container.component.ts
header-container.component.ts 750 B
import { Component } from '@angular/core';
import { AppService } from '@goofy-client/app-shared';
import { OAuthService } from 'angular-oauth2-oidc';
import { Observable } from 'rxjs';
@Component({
selector: 'goofy-client-header-container',
templateUrl: './header-container.component.html',
styleUrls: ['./header-container.component.scss']
})
export class HeaderContainerComponent {
navigationCollapse$: Observable<boolean>;
constructor(
private appService: AppService,
private authService: OAuthService,
) {
this.navigationCollapse$ = this.appService.getNavigationCollapse();
}
toggleNavigation(isToggle: boolean): void {
this.appService.setNavigationCollapse(isToggle);
}
logout(): void {
this.authService.logOut();
}
}