Skip to content

Instantly share code, notes, and snippets.

@DanyEscobar
Last active October 1, 2021 01:48
Show Gist options
  • Select an option

  • Save DanyEscobar/f0a786b00e11c5aced6fec904034eadd to your computer and use it in GitHub Desktop.

Select an option

Save DanyEscobar/f0a786b00e11c5aced6fec904034eadd to your computer and use it in GitHub Desktop.
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-notifications-side-menu',
templateUrl: './notifications-side-menu.component.html',
styleUrls: ['./notifications-side-menu.component.scss']
})
export class NotificationsSideMenuComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
toggleMenu(item): void {
const drawer = document.getElementById('drawer-' + item);
drawer.classList.toggle('active');
}
stopPropagation(event): void {
event.stopPropagation();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment