Ionic 1 side menu and tab in the any page


#1

I want to use side menu and tab but i have problem with ion-nav-view. When i click tabs there is no event

Menu.html














2.5.0 Sürümü




    Çıkış




school.html

{{schoolInfo[0].IlAdi}} - {{schoolInfo[0].IlceAdi}} - {{schoolInfo[0].SandikAlani}}
<ion-tabs class="tabs-icon-top tabs-positive">
    <ion-tab title="Milletvekili" icon="ion-home" ui-sref="app.test1">
        <ion-nav-view name="test1"></ion-nav-view>
    </ion-tab>

    <ion-tab title="Cumhurbaşkanı" icon="ion-gear-a" ui-sref="app.test2">
        <ion-nav-view name="test2"></ion-nav-view>
    </ion-tab>
</ion-tabs>

app.js

.state(‘app.logout’, {
url: “/logout”,
views: {
‘menuContent’: {
templateUrl: “templates/logout.html”,
controller: ‘LogOutCtrl’
}
}
})

    .state('app.test1', {
        url: '/test1',
        views: {
            'test1': {
                templateUrl: 'templates/test1.html',
                controller: 'test1Ctrl'
            }
        }
    })
    .state('app.test2', {
        url: '/test2',
        views: {
            'test2': {
                templateUrl: 'templates/test2.html',
                controller: 'test2Ctrl'
            }
        }            
    })