@raisiqueira/rxjs-subject-store
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

rxjs-subject-store

A basic state management implemented using RxJS Subjects.

install

yarn add @raisiqueira/rxjs-subject-store

Usage

import { Store } from '@raisiqueira/rxjs-subject-store';

class TState {
    value1: string = 'Hi!';
}

class TestStore extends Store {
    constructor() {
        super(new TState())
    }
}

Using with Angular 2+

Just add @Injectable() to the class.

License

MIT

Package Sidebar

Install

npm i @raisiqueira/rxjs-subject-store

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

3.52 kB

Total Files

6

Last publish

Collaborators

  • rsiqueira