I am new to Ionic, and I am developing a basic app in Ionic 4 with sidemenu
.
I am adding a button in Side Menu, when I am clicking on that button the menu is not toggling. can anyone help me in this ? here's the code which I am trying.
<ion-button color="primary" (click)="function()" class="class" menuToggle expand="block" fill="outline">
text
</ion-button>
Explanation of not Duplicate question
Please check the Bold text, I already have a working sidemenu, but the problem is I want to close the sidemenu when I click on ion-button
, not on ion-item
.