Dynamic submenu in Side menu app


#1

Hi All,
I am developing ionic app with side menu for android.
In side menu there is a menu and submenu. How we can display dynamic submenu??

If i delete Submenu form server and did pull to refresh. Submenu should be remove from side menu.
Can any one tell me ?? How i can refresh submenu with out closing application??


#2

Hi,

Could be more clear what do you mean with removing the submenu? Maybe screenshot or codepen.
If I got this right you have a submenu with some links you would like to remove when your server returns instructions for it?

This can be done from controller, you can hide the entire submenu or empty the array if you are using ngRepeat.

For more detailed paste the content of your sidebar.
dp