https://github.com/leostera/rx-history
History Observable for RxJS
https://github.com/leostera/rx-history
Last synced: over 1 year ago
JSON representation
History Observable for RxJS
- Host: GitHub
- URL: https://github.com/leostera/rx-history
- Owner: leostera
- Created: 2016-01-08T18:31:55.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-18T20:49:46.000Z (over 10 years ago)
- Last Synced: 2025-02-09T16:16:34.472Z (over 1 year ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Observable.fromHistory
Create an Observable from a History object.
```js
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);
});
```