Home

Awesome

The route middleware

The route middleware is responsible for client-side routing.

Installation

npm install @nx-js/route-middleware

Usage

const component = require('@nx-js/core')
const route = require('@nx-js/route-middleware')

component()
  .use(route)
  .register('router-comp')
<router-comp>
  <div route="profile" default-route></div>
  <div route="settings"></div>
</router-comp>