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
Forever Free Full-Stack Observability | Grafana Cloud Icon
Forever Free Full-Stack Observability | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
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