import { Component, ContentChild, Input, OnInit, TemplateRef } from '@angular/core'; @Component({ selector: 'onguard-drawer-container', templateUrl: './drawer-container.component.html', styleUrls: ['./drawer-container.component.scss'] }) export class DrawerContainerComponent implements OnInit { @Input() id = 0; @Input() containerData: any = {}; @Input() hideDrawer = true; @ContentChild('container') containerTemplate: TemplateRef; @ContentChild('drawer') drawerTemplate: TemplateRef; constructor() { } ngOnInit(): void { } public toggleDrawer(): void { this.hideDrawer = !this.hideDrawer; } }