Created
March 29, 2021 21:35
-
-
Save spierala/59cc4ec00b52c9ea746d0ef4f62d83c3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { CounterFeatureStore } from "./counter-feature-store"; | |
const counterFs = new CounterFeatureStore(); | |
counterFs.counter$.subscribe(count => console.log("count:", count)); | |
counterFs.inc(); | |
// OUTPUT: count: 11 | |
// OUTPUT: count: 12 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment