please explain me in a words why it works perfect when I call
ons.slidingMenu.toggleMenu()
having at the same time myMenu
as variable of
<ons-sliding-menu ....var="myMenu">
I mean I should call myMenu.toggleMenu()
, not ons.slidingMenu.toggleMenu()
....
I think that ons.slidingMenu is defined deep inside onsen. Where I could read about all this hidden vars? (I've found nothing about it in onsen-ui site)
Thanks!