Fix: Error in navbar, didn't do anything, but showed up in the errors.

This commit is contained in:
Amritanshu 2019-04-13 12:12:08 +05:30
parent c341e58d63
commit 72e8801472
2 changed files with 1 additions and 12 deletions

View File

@ -1,12 +1,4 @@
<mat-toolbar class="fixed-to-top">
<button
type="button"
aria-label="Toggle sidenav"
mat-icon-button
(click)="drawer.toggle()"
*ngIf="(isHandset | async)!.matches">
<mat-icon aria-label="Side nav toggle icon">menu</mat-icon>
</button>
<span><a routerLink="/">HnG / TGB</a></span>
<mat-menu #voucherMenu="matMenu">
<a mat-menu-item routerLink="/Journal">Journal</a>

View File

@ -1,6 +1,4 @@
import {Component, OnInit} from '@angular/core';
import {BreakpointObserver, Breakpoints, BreakpointState} from '@angular/cdk/layout';
import {Observable} from 'rxjs';
import {AuthService} from '../../auth/auth.service';
import {Subject} from 'rxjs/internal/Subject';
@ -10,10 +8,9 @@ import {Subject} from 'rxjs/internal/Subject';
styleUrls: ['./nav-bar.component.css']
})
export class NavBarComponent implements OnInit {
isHandset: Observable<BreakpointState> = this.breakpointObserver.observe(Breakpoints.Handset);
public nameObject = new Subject<string>();
constructor(private breakpointObserver: BreakpointObserver, private auth: AuthService) {
constructor(private auth: AuthService) {
}
ngOnInit() {