$ionicViewService.disableRegisterByTagName

This commit is contained in:
Adam Bradley
2014-01-24 17:18:18 -06:00
parent bcee7f268b
commit 5932dbcd98
2 changed files with 12 additions and 1 deletions

View File

@@ -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',

View File

@@ -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 <tab> directives would animate
$ionicViewService.disableRegisterByTagName('tabs');
}])
.directive('tabs', [function() {
return {
restrict: 'E',