export class SidenavListComponent implements OnInit {
darkMode: boolean;
@Output() sidenavClose = new EventEmitter();
+ showSubMenu = false;
constructor(private ui: UiService) { }
public onSidenavClose = () => {
this.sidenavClose.emit();
+ this.showSubMenu = !this.showSubMenu;
+ }
+
+ public toggle(){
+ this.showSubMenu = !this.showSubMenu;
}
}