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

Cannot navigate within routes and manually to update URL #92

Open
rossthedevigner opened this issue Jan 2, 2014 · 0 comments
Open

Cannot navigate within routes and manually to update URL #92

rossthedevigner opened this issue Jan 2, 2014 · 0 comments

Comments

@rossthedevigner
Copy link

Is there not currently a way to navigate within a set of routes? For example;

var app = Davis(function () {
this.get('/video/:videoID', function (req) {
alert("Hello " + req.params['name'])
})
})
app.start();

Then within my code, say after a video has stopped playing, I want to navigate to a new route and trigger the callback.

app.route.navigate(/video/dk59u8);

That would change the URL, update the history stack, and trigger the call back function based on the route pattern.

Is this currently possible?

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

No branches or pull requests

1 participant