Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 299 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 299 Bytes

LocationRouter

LocationRouter = require 'location-router'
router = new LocationRouter()

# Change url paths
router.go '/test'
router.go '/other_page'

# listen for url path changes
# returns RxJS Observable
router.getStream().subscribe (req) ->
  {url, path, query, hostname} = req