@raisiqueira/rxjs-subject-store

A basic state management implemented using RxJS Subjects.

Usage no npm install needed!

<script type="module">
  import raisiqueiraRxjsSubjectStore from 'https://cdn.skypack.dev/@raisiqueira/rxjs-subject-store';
</script>

README

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