Skip to content

Instantly share code, notes, and snippets.

@branquito
Created September 23, 2018 10:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save branquito/0d15920e01c5b05b4f17789287b4c2d4 to your computer and use it in GitHub Desktop.
Save branquito/0d15920e01c5b05b4f17789287b4c2d4 to your computer and use it in GitHub Desktop.
example routes
import Navigo from "navigo"
const router = new Navigo(null, true, "#!")
import Page1 from "./pages/page-one"
import Page2 from "./pages/page-two"
router
.on("/mixins", function() {
Page1.run()
})
.on("/objects", function() {
Page2.run()
})
.resolve()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment