Robin Robin - 1 year ago 308
AngularJS Question

Ionic nav-back-button not showing up

I'm new to Ionic and I'm currently trying to make my own app which is built up by several tabs. I'm currently facing the problem that my back button is not showing up. In my events tab, I allow people to click on an event in a list which opens a href with a details page for that specific event (event.html). My problem is that somehow the back buttons won't show up in any view at all. I even tried the easy route of creating a blank new view with just the nav bar and back button but it's still not showing up. Can anyone tell me what I need to do for my back button to show up?

Thanks a lot!


<body ng-app="App">
<ion-nav-bar class="bar-positive">
<ion-nav-back-button class="button-icon button-clear">
<i class="icon ion-arrow-left"></i> Back



<ion-tabs class="tabs-icon-top">
<ion-tab title="Events" icon="ion-calendar" ui-sref="">
<ion-nav-view name="events-tab"></ion-nav-view>


.state('', {
url: '/events',
views: {
'events-tab': {
templateUrl: 'views/events/events.html',
controller: 'EventsController'
}).state('event', {
url: '/event/:id',
templateUrl: 'views/events/event.html',
controller: 'EventController'

events.html (link to details page)

<a href="#/event/{{}}">


<ion-view view-title="{{event.title}}">

Event title: {{event.title}} <br />
Group name: {{event.groupname}} <br />
Date: {{}} <br />
Description: {{event.description}} <br />


Answer Source

I was facing the same issue , but then I used custom arrow exactly at the place I wanted to use. u can add the custom arrow image to your CSS file and then can use accordingly. ng-click="goBack()" is used to navigate to the page where u want to go, and u can define that in your .js file. I hope this works

HTML file

<ion-nav-buttons side="left">
    <a ng-click="goBack()" class="button back-button buttons  button-clear header-item nav-back-btn">
        <i class="ion-android-arrow-back"" id="customArrow"></i>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download