I'd like to have an icon (three-bars) on the right-side in the navbar.
Something like this:
I used to have it, I found the code somewhere on the internet, but I lost my code and I couldn't find again the URL from which I learned the technique.
Please help me recover the technique.
Thanks!
If I get correct, you want to use side menu.
<ion-side-menus>
<!-- Left menu -->
<ion-side-menu side="left">
</ion-side-menu>
<ion-side-menu-content>
<!-- Main content, usually <ion-nav-view> -->
</ion-side-menu-content>
<!-- Right menu -->
<ion-side-menu side="right">
</ion-side-menu>
</ion-side-menus>
function ContentController($scope, $ionicSideMenuDelegate) {
$scope.toggleLeft = function() {
$ionicSideMenuDelegate.toggleLeft();
};
}
Check out detailed example by link that I provided above.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With