mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
$ionicViewService.disableRegisterByTagName
This commit is contained in:
@@ -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',
|
||||
|
||||
6
js/ext/angular/src/directive/ionicTabBar.js
vendored
6
js/ext/angular/src/directive/ionicTabBar.js
vendored
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user