Created
January 7, 2015 15:47
-
-
Save jtomaszewski/e39c8b8db906fb9f68bd to your computer and use it in GitHub Desktop.
Ionic Framework: Turn off animations on Android and iOS 6 devices.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.config ($injector) -> | |
model = ionic.Platform.device().model or "" | |
animateNavigation = ionic.Platform.grade == "a" | |
unless animateNavigation | |
defaults = | |
'$ionicNavBarConfig': | |
transition: 'no-animation' | |
'$ionicNavViewConfig': | |
transition: 'no-animation' | |
angular.forEach defaults, (defaults, constantName) -> | |
angular.extend($injector.get(constantName), defaults) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment