Guest User

Untitled

a guest
Jan 18th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. class ActionsBus {
  2. private actionsSubject = new BehaviorSubject<Actions>({} as Actions);
  3. actions$ = this.actionsSubject.asObservable();
  4.  
  5. dispatch(action: Actions) {
  6. this.actionsSubject.next(action);
  7. }
  8. }
Add Comment
Please, Sign In to add comment