mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-04 15:10:54 +00:00
Adds a sidebar component
This commit is contained in:
18
web/src/app/shared/sidebar/sidebar.component.ts
Normal file
18
web/src/app/shared/sidebar/sidebar.component.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { MdSidenav } from '@angular/material';
|
||||
import { SidebarService } from './../../services/sidebar/sidebar.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-sidebar',
|
||||
templateUrl: './sidebar.component.html',
|
||||
styleUrls: ['./sidebar.component.scss']
|
||||
})
|
||||
export class SidebarComponent implements OnInit {
|
||||
@ViewChild('sidenav') public sidenav: MdSidenav;
|
||||
sidebarService: SidebarService
|
||||
constructor() { }
|
||||
|
||||
ngOnInit() {
|
||||
this.sidebarService.setSidenav(this.sidenav);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user