A basic state management implemented using RxJS Subjects.
yarn add @raisiqueira/rxjs-subject-store
import { Store } from '@raisiqueira/rxjs-subject-store';
class TState {
value1: string = 'Hi!';
}
class TestStore extends Store {
constructor() {
super(new TState())
}
}
Just add @Injectable()
to the class.
MIT