summaryrefslogtreecommitdiff
path: root/www/lib/ionic-native-transitions/test/config.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2017-09-27 12:42:48 -0400
committerPliable Pixels <pliablepixels@gmail.com>2017-09-27 12:42:48 -0400
commit210e8feae2fb4842bfb2de38666e6c41671fef3c (patch)
treecbdafa34b1a6260bb20236d7e9de9eb1b690a1c5 /www/lib/ionic-native-transitions/test/config.js
parente7e7baeaad90229ccb3e0f45f4ebd77be7d79b14 (diff)
removed lib
Diffstat (limited to 'www/lib/ionic-native-transitions/test/config.js')
-rw-r--r--www/lib/ionic-native-transitions/test/config.js149
1 files changed, 0 insertions, 149 deletions
diff --git a/www/lib/ionic-native-transitions/test/config.js b/www/lib/ionic-native-transitions/test/config.js
deleted file mode 100644
index 35aa240b..00000000
--- a/www/lib/ionic-native-transitions/test/config.js
+++ /dev/null
@@ -1,149 +0,0 @@
-export default function ($ionicNativeTransitionsProvider, $stateProvider, $urlRouterProvider, $ionicConfigProvider) {
- 'ngInject';
- $ionicNativeTransitionsProvider.setDefaultOptions({
- duration: 500,
- // backInOppositeDirection: true
- });
-
- $ionicNativeTransitionsProvider.setDefaultTransition({
- type: 'flip',
- direction: 'left'
- });
-
- $ionicNativeTransitionsProvider.setDefaultBackTransition({
- type: 'slide',
- direction: 'right'
- });
-
- $ionicNativeTransitionsProvider.enable(false);
-
- $ionicConfigProvider.tabs.position('top');
-
- $stateProvider
- .state('tabs', {
- url: "/tab",
- abstract: true,
- templateUrl: "templates/tabs.html"
- })
- .state('tabs.home', {
- url: "/home",
- nativeTransitions: null,
- views: {
- 'home-tab': {
- templateUrl: "templates/home.html"
- }
- }
- })
- .state('tabs.about', {
- url: "/about",
- nativeTransitions: {
- type: "fade"
- },
- views: {
- 'about-tab': {
- templateUrl: "templates/about.html"
- }
- }
- })
- .state('tabs.contact', {
- url: "/contact",
- nativeTransitions: {
- type: "slide",
- direction: "left",
- fixedPixelsTop: 93
- },
- views: {
- 'contact-tab': {
- templateUrl: "templates/contact.html"
- }
- }
- })
- .state('one', {
- url: "/one",
- nativeTransitions: {
- "type": "flip",
- "direction": "up"
- },
- nativeTransitionsAndroid: {
- "type": "flip",
- "direction": "right"
- },
- nativeTransitionsBackAndroid: {
- "type": "slide",
- "direction": "down"
- },
- nativeTransitionsIOS: {
- "type": "flip",
- "direction": "left"
- },
- nativeTransitionsWindowsPhone: {
- "type": "flip",
- "direction": "down"
- },
- templateUrl: "templates/one.html"
- })
- .state('two', {
- url: "/two",
- nativeTransitions: {
- type: "fade"
- },
- nativeTransitionsBack: null,
- nativeTransitionsIOS: {
- "type": "flip",
- "direction": "down" // 'left|right|up|down', default 'right' (Android currently only supports left and right)
- },
- templateUrl: "templates/two.html"
- })
- .state('three', {
- url: "/three",
- nativeTransitions: {
- type: "fade"
- },
- nativeTransitionsAndroid: {
- "type": "slide",
- "direction": "up" // 'left|right|up|down', default 'right' (Android currently only supports left and right)
- },
- nativeTransitionsBackAndroid: {
- "type": "slide",
- "direction": "up" // 'left|right|up|down', default 'right' (Android currently only supports left and right)
- },
- templateUrl: "templates/three.html"
- })
- .state('four', {
- url: "/four?testParamUrl",
- params: {
- test: null
- },
- templateUrl: "templates/four.html",
- controller: function ($stateParams) {
- 'ngInject';
- console.log('$stateParams', $stateParams);
- }
- })
- .state('five', {
- url: "/five",
- templateUrl: "templates/five.html",
- controller: function ($stateParams) {
- 'ngInject';
- console.log('$stateParams', $stateParams);
- },
- resolve: function ($timeout, $q, $ionicPopup) {
- 'ngInject';
- var deferred = $q.defer();
- $timeout(function () {
- $ionicPopup.show({
- template: '',
- title: 'A popup',
- buttons: [
- { text: 'Cancel' }
- ]
- });
- deferred.reject();
- }, 1000)
- return deferred.promise;
- }
- });
-
-
- $urlRouterProvider.otherwise("/tab/home");
-}