Skip to content

Commit 5932dbc

Browse files
author
Adam Bradley
committed
$ionicViewService.disableRegisterByTagName
1 parent bcee7f2 commit 5932dbc

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

js/ext/angular/src/directive/ionicSideMenu.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,19 @@
77
* left and/or right menu, which a center content area.
88
*/
99

10-
angular.module('ionic.ui.sideMenu', ['ionic.service.gesture'])
10+
angular.module('ionic.ui.sideMenu', ['ionic.service.gesture', 'ionic.service.view'])
1111

1212
/**
1313
* The internal controller for the side menu controller. This
1414
* extends our core Ionic side menu controller and exposes
1515
* some side menu stuff on the current scope.
1616
*/
1717

18+
.run(['$ionicViewService', function($ionicViewService) {
19+
// set that the side-menus directive should not animate when transitioning to it
20+
$ionicViewService.disableRegisterByTagName('side-menus');
21+
}])
22+
1823
.directive('sideMenus', function() {
1924
return {
2025
restrict: 'ECA',

js/ext/angular/src/directive/ionicTabBar.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ angular.module('ionic.ui.tabs', ['ionic.service.view'])
77
* on a tab bar. Modelled off of UITabBarController.
88
*/
99

10+
.run(['$ionicViewService', function($ionicViewService) {
11+
// set that the tabs directive should not animate when transitioning
12+
// to it. Instead, the children <tab> directives would animate
13+
$ionicViewService.disableRegisterByTagName('tabs');
14+
}])
15+
1016
.directive('tabs', [function() {
1117
return {
1218
restrict: 'E',

0 commit comments

Comments
 (0)