raisiqueira / rxjs-store-subject

A basic state management implemented using RxJS Subjects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A basic state management implemented using RxJS Subjects.


Languages

Language:TypeScript 65.2%Language:JavaScript 34.8%