Reputation: 709
I want to change the value of ion-nav-button (side), button(menu-toggle) and ion-side-menu(side) from LEFT to RIGHT. how can i do this?
Here is my Code:
<ion-nav-buttons id="navButton" side="left">
<button id="toggleButton" class="button button-icon button-clear ion-navicon" menu-toggle="left">
</button>
</ion-nav-buttons>
and
<ion-side-menu id="sideMenuId" side="left">
I want to change the values of above mentioned from left to right on button click.
Upvotes: 0
Views: 302
Reputation: 827
$ionicNavBarDelegate delegate for controlling the ionNavBar directive and supports different methods. It is injected into the controller to access its properties and methods. link : http://ionicframework.com/docs/api/service/$ionicNavBarDelegate/
Another way to access html is create custom attribute directive and within the directive we can access corresponding element and manipulate DOM.
Upvotes: 0