@happypathrun/rx-rx
v1.0.0
Published
A collection of helpers for Angular and RxJs provided by Happy Path
Downloads
4
Readme
Rx Rx
@happypathrun/rx-rx
contains utility functions that we use for Angular and RxJs.
Installation
npm install @happypathrun/rx-rx --save-dev
or yarn add --dev @happypathrun/rx-rx
Testing
npm run test
or yarn test
Requirements
This library uses TypeScript decorators, so you'll need to enable the experimentalDecorators
compiler option in your tsconfig.json
file.
Features
@Observe
- A decorator that creates an observable for you based on a class property.@AutoUnsubscribe
and@Subscribes
- A pair of decorators that automatically unsubscribes from observables when a component is destroyed.@Timer
- A decorator that logs the time it takes for a method to execute.