JSPM

  • Created
  • Published
  • 0
  • Score
    100M100P100Q55483F
  • License MIT

Package Exports

  • aurelia-direct-router

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (aurelia-direct-router) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

License: MIT TypeScript npm

aurelia-direct-router

Installing

For the latest stable version:

npm i aurelia-direct-router

Using

Once the Aurelia Direct Router is installed, simply import anything router related from aurelia-direct-router instead of from aurelia or @aurelia/router. So, for example, in your main.js/ts file

import Aurelia, { RouterConfiguration } from 'aurelia';

should be changed to

import Aurelia from 'aurelia';
import { RouterConfiguration } from 'aurelia-direct-router';

Note that while a lot of the API of the router shipping with Aurelia is a subset of the API of Aurelia Direct Router, there are some differences. Please consult the Aurelia Direct Router documentation for details.

Documentation

You can read the documentation on the Aurelia Direct Router here.