Open suriyaJaay opened 6 years ago
change app.component.ts
find:
private onItemSelect(item: any) { console.log(item); }
and just call onMenuClose()
so will be something like
private onItemSelect(item: any) { onMenuClose(); }
You may use config attribute. In your html-template add:
<cuppa-slidemenu [menulist]="menuItems"
(onItemSelect)="onItemSelect($event)"
[config]="menuConfig">
</cuppa-slidemenu>
In your component.ts add:
private menuConfig: any = {
animation: "collapse",
offset: { top: 55 },
closeOnCLick: true
};
Hope I helped you.
menuclose is not happening even , if i use the above code.Menu items are showing
How to pls tell me how to auto close the side menu when clicking on particular menu.?
by doing this, how to load corresponding page while clicking menu routing.
pls share you ideas