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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start 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