The function `onTabDeselected` and `onTabSelected` never get called


#1

and in my controller

.controller('HomeTabCtrl', function($scope) {
  //console.log('HomeTabCtrl');
  $scope.onTabSelected = function(){
    console.log("onTabSelected");
  }
 $scope.onTabDeselected = function(){
    console.log("onTabDeselected");
  }
});

the function onTabDeselected and onTabSelected never get called. I think I followed the directions?


#2

I resolved the issue… how do I delete the post?


#3

Hey @aaronksaunders, what ended up being the issue?


#4

scope… the specific controllers for the tabs cannot contain the callback functions, I needed to add a higher level controller to handle the callbacks

The pen is here

I am starting to blog about my experiences is preparation for a workshop on Ionic: http://www.clearlyinnovative.com/blog/post/34758525881/ionic-framework-tabs-go-home-view


#5

I did notice however, that even in the original example, when you are two levels deep in the home tab and click the home button, it is not removing the back button from the navBar