Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ActionsBus {
- private actionsSubject = new BehaviorSubject<Actions>({} as Actions);
- actions$ = this.actionsSubject.asObservable();
- dispatch(action: Actions) {
- this.actionsSubject.next(action);
- }
- }
Add Comment
Please, Sign In to add comment