Topic: Subscribing to sidenav overlay click
Damian Gemza staff answered 6 years ago
@ViewChild(SidenavComponent) sidenav: SidenavComponent; @HostListener('window:resize') onresize() { console.log(this.sidenav.shown); }
mdb2 pro answered 6 years ago
Damian Gemza staff answered 6 years ago
ngOnInit() { this.renderer.listen(this.el.nativeElement.querySelector('#sidenav-overlay'), 'click', () => { console.log('Overlay clicked'); }); }
mdb2 pro answered 6 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: 6.2.2
- Device: NA
- Browser: NA
- OS: NA
- Provided sample code: No
- Provided link: No