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