8.0.1 • Published 4 years ago

rxjs-router5 v8.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

npm version

rxjs-router5

rxjs (RxJS 5+) integration with router5

npm install --save rxjs-router5

Usage

rxjs-router5 exports a single function createObservables:

import createRouter from 'router5';
import createObservables from 'rxjs-router5';

const router = createRouter([
    { name: 'home', path: '/home' },
    { name: 'about', path: '/about' }
]);

const {
    route$,
    routeNode,
    transitionError$,
    transitionRoute$
} = createObservables(router)

router.start();

route$.map((route) => { /* ... */ })

Available observables

createObservables returns the following observables:

  • route$: an observable of your application route
  • transitionRoute$: an observable of the currently transitioning route
  • transitionError$: an observable of transition errors
  • routeNode(nodeName): a function returning an observable of route updates for the specified node.

Related

8.0.1

4 years ago

8.0.0

4 years ago

7.0.2

5 years ago

7.0.1

5 years ago

7.0.0

5 years ago

5.3.5

6 years ago

5.3.4

6 years ago

5.3.3

6 years ago

5.3.2

6 years ago

5.3.1

6 years ago

5.3.0

6 years ago

5.2.1

6 years ago

5.2.0

6 years ago

5.1.1

6 years ago

5.1.0

7 years ago

5.0.2

7 years ago

5.0.1

7 years ago

5.0.0

7 years ago

1.0.1

8 years ago

1.0.0

8 years ago