Skip to content
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

feat(history) add go method #43

Merged
merged 1 commit into from
Oct 10, 2018
Merged

feat(history) add go method #43

merged 1 commit into from
Oct 10, 2018

Conversation

jwx
Copy link
Member

@jwx jwx commented Oct 9, 2018

The go method moves to a specific position in the navigation history.

@jwx
Copy link
Member Author

jwx commented Oct 9, 2018

Also necessary for the bugfix in aurelia/router#621.

* @param movement The amount of steps, positive or negativ, to move.
* @returns The current index.
*/
go(movement: number): void {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We would need an abstract method for the base class History in aurelia-history. It would be an error TS folks without it. This is where the implementation is only.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Am on it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already ❤️ your PRs 👍

The go method moves to a specific position in the navigation history.
@davismj davismj merged commit 8282261 into aurelia:master Oct 10, 2018
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.

3 participants