Comments (1)
Have a look at the docs for Sticky State:
DOM and $scope of a Sticky State (and all activated substates) is retained until the parent state of the sticky state is exited.
In your pen, the important states are home.list
and detail
where home.list
is sticky. When you transition from home.list
to detail
, it is exiting both home.list
AND home
. Since home
(the parent state of the sticky state) gets exited, home.list
is not retained.
I'm not sure if sticky states and DSR can be used on an abstract state. I suggest restructuring your state tree so the parent to the sticky state doesn't get exited when transitioning to the detail state.
Why not put detail
below the list state: home.list.detail
? I suspect you don't need sticky states at all, although I don't know much about how ionic works. Alternatively, try marking home
as sticky, or create a non-abstract DSR/sticky state as a parent to home.
from ui-router-extras.
Related Issues (20)
- console.table is undefined in IE 11
- Exact url match instead of everything that follows HOT 1
- how to preload states - revisited HOT 1
- Cant get StateFactory to work the right way
- the params of "$previousState.set()" HOT 1
- $state.go is not working on ui-router 1.0.0-rc.1 for FutureState
- Error when importing ui-router-extras into app
- State change with "notify: false" refreshes sticky on next transition
- How to switch to a child state without losing hidden params? HOT 1
- End of Life, UI-Router v1.x and $previousState HOT 11
- Angular 1.6.5 Cannot read property '$$equals' of undefined HOT 4
- error : extend is not a function, injecting ct.ui.router.extras HOT 1
- Router doesn't resolve the child scope after the application is idle for at least 10 mins
- DSR Navigation not correctly stopped
- Sticky not working and routing failed after updating angular-ui-router @v1.0.15
- Error: [$injector:modulerr] Failed to instantiate module undefined due to: Error: [ng:areq] Argument 'fn' is not a function, got undefined
- Controller reloaded when params in route HOT 2
- $previousState is lost in case of page refresh
- DSR using params subset redirecting to the default state HOT 2
- Modules not loading after updating ui-router and angular 1.3 to 1.5.5
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 ui-router-extras.