rx-history

1.0.4 • Public • Published

Observable.fromHistory

Create an Observable from a History object.

import createHistory from 'history';
 
let history = createHistory();
 
import { Observable } from 'rxjs';
import 'rx-history';
 
Observable.fromHistory(history)
  .pluck("pathname")
  .tap( (path) => {
    console.log("Path change!", path);
  });

Readme

Keywords

Package Sidebar

Install

npm i rx-history

Weekly Downloads

4

Version

1.0.4

License

MIT

Last publish

Collaborators

  • leostera