From 5932dbcd98e2bc36e5fde85072d90a9cddc4e302 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Fri, 24 Jan 2014 17:18:18 -0600 Subject: [PATCH] $ionicViewService.disableRegisterByTagName --- js/ext/angular/src/directive/ionicSideMenu.js | 7 ++++++- js/ext/angular/src/directive/ionicTabBar.js | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) 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',