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
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
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