There are multiple ways to install page.js. With package managers. Setup redirect from one path to another. Calling page.redirect with only a string as the first parameter redirects to another route. Waits for the current route to push state and after replaces it with the new one leaving the browser history clean. If you're doing selective binding you'll like want to pass { click: false } to specify this yourself. Exit routes are called when a page changes, using the context from the previous change. Create a new page instance with the given options. Use this if you need to control multiple windows (like iframes or popups) in addition to the main window. The router uses the same string-to-regexp conversion that Express does, so things like ":id", ":id?", and "*" work as you might expect.

Features

  • Has the ability to pass multiple callbacks
  • Flatten nested callbacks, or simply to abstract components
  • page.js has a single "Context" object
  • Omits queries when a user presses back
  • It works in older version of Internet Explorer that don't support pushState
  • Configure your environment to point to your project's main file

Project Samples

Project Activity

See All Activity >

Categories

Router

License

MIT License

Follow page.js

page.js Web Site

Other Useful Business Software
Go from Code to Production URL in Seconds Icon
Go from Code to Production URL in Seconds

Cloud Run deploys apps in any language instantly. Scales to zero. Pay only when code runs.

Skip the Kubernetes configs. Cloud Run handles HTTPS, scaling, and infrastructure automatically. Two million requests free per month.
Try it free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of page.js!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Router Firmware

Registered

2021-07-29