Skip to content

Instantly share code, notes, and snippets.

@MikeRyanDev
Created February 25, 2018 21:14
Show Gist options
  • Save MikeRyanDev/66e572eb31d9b827259507a1f063f20c to your computer and use it in GitHub Desktop.
Save MikeRyanDev/66e572eb31d9b827259507a1f063f20c to your computer and use it in GitHub Desktop.
export class BookEffects {
@Effect() getOneBook$ = this.actions$.pipe(
ofType(INPUT_ACTION_TYPE),
exhaustMap(action => this.booksService.getOne(action.bookId)),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment