Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49076

Android back button ion-side-menus

$
0
0

@szulborski wrote:

Hi

I'm working on ionic application that will be used on android and ios devices. I'm using ion-side-menus.
This is my home screen html code:

<ion-side-menus>
    <ion-side-menu-content>
        <ion-content>
            <div ng-repeat="category in categories" ng-click="display_pages($index)" class="category">
                {{ category.name }}
            </div>
        </ion-content>
    </ion-side-menu-content>
    <ion-side-menu side="left">
        <ion-list>
            <ion-item ng-repeat="page in pages" menu-close>
                <a href="" ui-sref="page({ id: page.id })">{{ page.name }}</a>
            </ion-item>
        </ion-list>
    </ion-side-menu>
</ion-side-menus>

When someone clicks on home screen div - menu opens. There are links to another pages in the menu. When someone clicks on that link - new page opens.
Ewerithing seems to work perfectly despite the fact that on android devices system back button doesn't work. When user is on the subpage and presses back button - application returns to system.
Everything works ok when i remove ion-side-menus and display links without it. But i have to use this kind of menu..
Somebody can help me? What i'm doing wrong?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 49076

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>