JD76
JD76

Reputation: 73

Onsen-ui: SlidingMenu doesn't update

is there a way to update a sliding menu in Onsen? I want to show a different menu after a login. I already have the 2 version of the sliding menu (and they work, if I login, exit from the app and reopen the app).... But I'm not able to find a way to tell the menu "after the login change the view".

I already put a refresh method inside the controller, that is called after the login (and I saw that the call works, but the view remain the same)

Thanks in advance.

Upvotes: 0

Views: 85

Answers (1)

Ashish Kumawat
Ashish Kumawat

Reputation: 695

After successful login execute function that will execute this onsen predefined function

menu.setMenuPage('newMenu.html', {closeMenu: true});

where newMenu.html is the id of your second menu template.

Upvotes: 1

Related Questions