Skip to content

Disable a single step of history recording for the next view displayed by specifying nextViewOptions.disableHistory. #3318

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3,721 commits into from

Conversation

whydoidoit
Copy link

This is useful when a root view takes you forward, but subsequent steps forward from the child should return to the root.

An example of this is:

Root is a list of available messages. Tapping one takes you to a message display, which also contains a list of related messages. If you record history and keep stepping through children you end up with a crazy history stack which is not what the user wants. Pressing Back should return them to the root of the messages.

Adding this to nextViewOptions as disableHistory especially helps when using URL route switches to facilitate dynamic loading of states from the file system.

perrygovier and others added 30 commits December 12, 2014 11:41
This change makes the DelegateService available on the ionic namespace.
It is useful so external directives can follow the delegate pattern set
by the framework itself.
Improves tap behaviours on iPad by reducing “missclicks”
…crease

refactor(tap): increase tap release tolerance
Fix IE10 scroll issue. This addresses ionic-team#2728
adamdbradley and others added 21 commits March 11, 2015 10:12
docs($ionicPlatform): list back button priorities
docs(statusbar): requirements for statusbar methods
fix(tab): set $scope.$tabSelected when nested tabs selected
fix(subHeader): removes borders on android subheaders
It's a hack, but it's the best we can do right now.
Refactored to create a `changeValidator` object that will properly tell
you if a resize or a data change requires a refresh.

Closes ionic-team#3299.
Addresses ionic-team#3274.

These dependencies should not be in bower.json because they are not used
in Ionic.

Many people's build processes pull in all of these and
automatically bundle them into the browser.  If they do that, it will
break with the addition of `scenario` and `mocks`. Additionally, we
will add unneeded overhead with `aria`, `messages` and `resources`.
…d by specifying nextViewOptions.disableHistory.

This is useful when a root view takes you forward, but subsequent steps forward from the child should return to the root.

An example of this is:

Root is a list of available messages.  Tapping one takes you to a message display, which also contains a list of related messages.  If you record history and keep stepping through children you end up with a crazy history stack which is not what the user wants.  Pressing Back should return them to the root of the messages.

Adding this to nextViewOptions as disableHistory especially helps when using URL route switches to facilitate dynamic loading of states from the file system.
@josephfinlayson
Copy link

I think this would be exceptionally helpful for those with complex nested/abstract states. I think it'd also be useful as an attribute on the $stateProvider:

E.g:

.state('abstractState.thing', {
   url: '/things',
   templateUrl: 'app/things.tpl.html',
   disableHistory: true
})

@petermetz
Copy link

+1

@josephfinlayson
Copy link

Links to this: #3418

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.