Comments (7)
Yes that is correct. Why do you have a custom ng-click on the ion-nav-back-button directive?
What the project does is that it overwrite the $rootScope.$ionicGoBack
function: https://github.com/shprink/ionic-native-transitions/blob/develop/lib/run.js#L23
When no ng-click is defined the ion-nav-back-button directive adds it with $rootScope.$ionicGoBack
call that is why it work if you do not have ng-click defined.
from ionic-native-transitions.
Ionic tabs have there own history, for my use case I need the history to flow from one tab to another. So I am using my own back function.
How can i add the animation to my function?
—
Sent from Mailbox
On Thu, Oct 29, 2015 at 12:49 AM, Julien Renaux [email protected]
wrote:
Yes that is correct. Why do you have a custom ng-click on the ion-nav-back-button directive?
What the project does is that it overwrite the$rootScope.$ionicGoBack
function: https://github.com/shprink/ionic-native-transitions/blob/develop/lib/run.js#L23When no ng-click is defined the ion-nav-back-button directive adds it with
$rootScope.$ionicGoBack
call that is why it work if you do not have ng-click defined.Reply to this email directly or view it on GitHub:
#19 (comment)
from ionic-native-transitions.
Can I just add this?
$ionicNativeTransitions.transition('back');
—
Sent from Mailbox
On Thu, Oct 29, 2015 at 12:49 AM, Julien Renaux [email protected]
wrote:
Yes that is correct. Why do you have a custom ng-click on the ion-nav-back-button directive?
What the project does is that it overwrite the$rootScope.$ionicGoBack
function: https://github.com/shprink/ionic-native-transitions/blob/develop/lib/run.js#L23When no ng-click is defined the ion-nav-back-button directive adds it with
$rootScope.$ionicGoBack
call that is why it work if you do not have ng-click defined.Reply to this email directly or view it on GitHub:
#19 (comment)
from ionic-native-transitions.
Try that and let me know ;)
from ionic-native-transitions.
$ionicNativeTransitions.unregisterToStateChangeStartEvent();
// your $state.go call
$ionicNativeTransitions.transition('back');
from ionic-native-transitions.
That works thanks.
Is there any way to control the animation for the header? Seems like its fading in and out.
from ionic-native-transitions.
For tabs I suggest to disable animations but you could also try fixedPixelsTop
and fixedPixelsBottom
options.
$ionicNativeTransitionsProvider.setDefaultOptions({
duration: 400, // in milliseconds (ms), default 400,
slowdownfactor: 4, // overlap views (higher number is more) or no overlap (1), default 4
iosdelay: -1, // ms to wait for the iOS webview to update before animation kicks in, default -1
androiddelay: -1, // same as above but for Android, default -1
winphonedelay: -1, // same as above but for Windows Phone, default -1,
fixedPixelsTop: 0, // the number of pixels of your fixed header, default 0 (iOS and Android)
fixedPixelsBottom: 0 // the number of pixels of your fixed footer (f.i. a tab bar), default 0 (iOS and Android)
triggerTransitionEvent: '$ionicView.afterEnter' // internal ionic-native-transitions option
});
from ionic-native-transitions.
Related Issues (20)
- The view repeat itself before the effect change and -1 effect crash the app HOT 8
- Angular Tabs HOT 1
- Installation documentation is unclear HOT 1
- Page switch when the original page will blink HOT 2
- Navigation from ion-side-menus freezes app HOT 2
- Fade animation won't fire on iOS HOT 3
- Second fade transition to/from same state freeze the app (iOS)
- Back to previous page transition is flickering HOT 6
- Can this plugin be used in ionic2 projects? HOT 1
- Transition only working one time
- Back-Button Transition "jumping"
- $ionicNativeTransitions.goBack(); HOT 1
- ionic-native-transition not working HOT 2
- $ionicLoading and state route resolve
- Finishing the animation without load the page HOT 1
- How to prevent successive state changes when user clicks 2 different links rapidly? HOT 1
- Failed to fetch plugin HOT 7
- Hardware back button different action than ion-nav-buttons HOT 2
- Uncaught Error: [$injector:modulerr]
- Back button - Transition finish before state changed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ionic-native-transitions.