Skip to content

Add method to get current route

Latest
Compare
Choose a tag to compare
released this 13 Feb 13:00
· 10 commits to master since this release

Just an alias to Backbone.history.getFragment()

import highway from 'backbone-highway'

// Declare routes ...

const currentRoute = highway.currentRoute()