0.0.4 • Published 2 months ago

@dgaa/store-subject v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

store-subject

Building

Run nx build store-subject to build the library.

Running unit tests

Run nx test store-subject to execute the unit tests via Jest.

Usage

import { StoreSubject } from '@dgaa/store-subject';

const storeSubject = new StoreSubject(1);

storeSubject.subscribe((currentValue) => {
  console.log(currentValue); // 1
);

storeSubject.next(2); // Will log 2

storeSubject.getValue(); // Will return 2
0.0.4

2 months ago

0.0.3

11 months ago

0.0.1

11 months ago