diff --git a/js/angular/directive/tab.js b/js/angular/directive/tab.js index 660093b55f3..c7c9eacc8f7 100644 --- a/js/angular/directive/tab.js +++ b/js/angular/directive/tab.js @@ -52,9 +52,6 @@ function($rootScope, $animate, $ionicBind, $compile) { controller: '$ionicTab', scope: true, compile: function(element, attr) { - var navView = element[0].querySelector('ion-nav-view') || - element[0].querySelector('data-ion-nav-view'); - var navViewName = navView && navView.getAttribute('name'); //We create the tabNavTemplate in the compile phase so that the //attributes we pass down won't be interpolated yet - we want @@ -80,6 +77,10 @@ function($rootScope, $animate, $ionicBind, $compile) { var tabsCtrl = ctrls[0]; var tabCtrl = ctrls[1]; + var navView = tabContent[0].querySelector('ion-nav-view') || + tabContent[0].querySelector('data-ion-nav-view'); + var navViewName = navView && navView.getAttribute('name'); + $ionicBind($scope, $attr, { animate: '=', onSelect: '&', diff --git a/js/angular/directive/tabNav.js b/js/angular/directive/tabNav.js index de0af1b2a2f..e49880a203a 100644 --- a/js/angular/directive/tabNav.js +++ b/js/angular/directive/tabNav.js @@ -26,7 +26,7 @@ IonicModule tabCtrl = ctrls[1]; //Remove title attribute so browser-tooltip does not apear - // $element[0].removeAttribute('title'); + $element[0].removeAttribute('title'); $scope.selectTab = function(e) { e.preventDefault();