Closed hems closed 10 years ago
ways = require('ways'); ways.use require('ways-browser')
ways '*', @url_changed
url_changed: ( req ) -> console.log "url changed #{req.url}"
// then navigate to an internal page, like:
ways.go "/articles" # will trigger url_changed
// then click the "back browser arrow", WON'T trigger url_changed
Did the tests passed locally? The build is failing
As you addressed this issue with other pull request, I'm going to concentrate this topic on the PR. https://github.com/serpentem/ways-browser/pull/3
cool
ways = require('ways'); ways.use require('ways-browser')
ways '*', @url_changed
url_changed: ( req ) -> console.log "url changed #{req.url}"
// then navigate to an internal page, like:
ways.go "/articles" # will trigger url_changed
// then click the "back browser arrow", WON'T trigger url_changed