diff --git a/js/ext/angular/src/directive/ionicSideMenu.js b/js/ext/angular/src/directive/ionicSideMenu.js index f32eca036b..039b66b0b9 100644 --- a/js/ext/angular/src/directive/ionicSideMenu.js +++ b/js/ext/angular/src/directive/ionicSideMenu.js @@ -7,7 +7,7 @@ * left and/or right menu, which a center content area. */ -angular.module('ionic.ui.sideMenu', ['ionic.service.gesture']) +angular.module('ionic.ui.sideMenu', ['ionic.service.gesture', 'ionic.service.view']) /** * The internal controller for the side menu controller. This @@ -15,6 +15,11 @@ angular.module('ionic.ui.sideMenu', ['ionic.service.gesture']) * some side menu stuff on the current scope. */ +.run(['$ionicViewService', function($ionicViewService) { + // set that the side-menus directive should not animate when transitioning to it + $ionicViewService.disableRegisterByTagName('side-menus'); +}]) + .directive('sideMenus', function() { return { restrict: 'ECA', diff --git a/js/ext/angular/src/directive/ionicTabBar.js b/js/ext/angular/src/directive/ionicTabBar.js index 2efcd7da5e..dd13188ad9 100644 --- a/js/ext/angular/src/directive/ionicTabBar.js +++ b/js/ext/angular/src/directive/ionicTabBar.js @@ -7,6 +7,12 @@ angular.module('ionic.ui.tabs', ['ionic.service.view']) * on a tab bar. Modelled off of UITabBarController. */ +.run(['$ionicViewService', function($ionicViewService) { + // set that the tabs directive should not animate when transitioning + // to it. Instead, the children directives would animate + $ionicViewService.disableRegisterByTagName('tabs'); +}]) + .directive('tabs', [function() { return { restrict: 'E',