{"action":"opened","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/7766","repository_url":"https://api.github.com/repos/driftyco/ionic","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/7766/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/7766/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/7766/events","html_url":"https://github.com/driftyco/ionic/issues/7766","id":171839375,"number":7766,"title":"Getting $ionicTabsDelegate To Display Tabs Bar","user":{"login":"angelalukic","id":20676987,"avatar_url":"https://avatars.githubusercontent.com/u/20676987?v=3","gravatar_id":"","url":"https://api.github.com/users/angelalukic","html_url":"https://github.com/angelalukic","followers_url":"https://api.github.com/users/angelalukic/followers","following_url":"https://api.github.com/users/angelalukic/following{/other_user}","gists_url":"https://api.github.com/users/angelalukic/gists{/gist_id}","starred_url":"https://api.github.com/users/angelalukic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angelalukic/subscriptions","organizations_url":"https://api.github.com/users/angelalukic/orgs","repos_url":"https://api.github.com/users/angelalukic/repos","events_url":"https://api.github.com/users/angelalukic/events{/privacy}","received_events_url":"https://api.github.com/users/angelalukic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/driftyco/ionic/labels/header","name":"header","color":"207de5"},{"url":"https://api.github.com/repos/driftyco/ionic/labels/menus","name":"menus","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-18T07:55:20Z","updated_at":"2016-08-18T07:55:20Z","closed_at":null,"body":"Also asked this on StackOverflow: http://stackoverflow.com/questions/39012531/getting-ionictabsdelegate-to-display-tabs-bar\r\n\r\nI've currently got an Ionic App which has both a sidemenu and a tabs bar. I'm trying to get it so the tabs bar will display on sidemenu pages which are not children of the tabs bar. The only page which is a child of both is the dashboard. Currently the tabs bar disappears if I access a side menu page that isn't dashboard.\r\n\r\nFrom browsing the Ionic forums I learned of a method which seems to be on the right tracks but it doesn't seem to be working.\r\n\r\nReference: http://ionicframework.com/docs/api/service/$ionicTabsDelegate/\r\n\r\n**index.html**\r\n\r\n```\r\n<ion-content class=\"side-menu-left\" ng-controller=\"AppCtrl\">\r\n  <ion-list <!--Irrelevant Stuff Here-->>\r\n    <ion-item ui-sref=\"aboutUs\" <!--Irrelevant Stuff Here--> ng-click=\"showTabs()\" menu-close>\r\n      <i class=\"icon ion-information-circled\"></i>About Us</ion-item>\r\n\r\n  <!-- More Side Menu Items Here etc. -->\r\n```\r\n\r\n**controllers.js**\r\n\r\n```\r\n.controller('AppCtrl', function($scope, $ionicTabsDelegate) {\r\n\r\n    $scope.showTabs = function() {\r\n        $ionicTabsDelegate.showBar(true);\r\n    };\r\n});\r\n```\r\n\r\nI have also tried $ionicTabsDelegate.$getByHandle('tabsController').showBar(true); but this doesn't work either. I can access the page fine but the tabs bar still does not appear.\r\n\r\nHere are some other bits of my code if it helps understanding in any way:\r\n\r\n**aboutUs.html**\r\n\r\n```\r\n<ion-view style=\"\" class=\" \" id=\"page10\" title=\"About Us\">\r\n    <ion-content class=\"has-header\" padding=\"true\"><!--Content Here--></ion-content>\r\n</ion-view>\r\n```\r\n\r\n**routes.js**\r\n\r\n```\r\n.config(function($stateProvider, $urlRouterProvider) {\r\n$stateProvider\r\n\r\n.state('tabsController', {\r\n    url: '/page1',\r\n    templateUrl: 'templates/tabsController.html',\r\n    abstract:true\r\n  })\r\n\r\n.state('tabsController.dashboard', {\r\n    url: '/dashboard',\r\n    views: {\r\n      'tab1': {\r\n        templateUrl: 'templates/dashboard.html',\r\n        controller: 'dashboardCtrl'\r\n      }\r\n    }\r\n  })\r\n\r\n// Other controllers for tabs pages here\r\n\r\n.state('aboutUs', {\r\n    url: '/aboutUs',\r\n    templateUrl: 'templates/aboutUs.html',\r\n    controller: 'aboutUsCtrl'\r\n  })\r\n\r\n// Other controllers for sidemenu pages here\r\n\r\n$urlRouterProvider.otherwise('/page1/dashboard')\r\n\r\n});\r\n```"}}
{"actor":{"display_login":"angelalukic"}}