import { Injectable } from '@angular/core' ; import { Actions , createEffect , ofType } from '@ngrx/effects' ; import { EMPTY } from 'rxjs' ; import { concatMap } from 'rxjs/operators' ; import * as BookingActions from './booking.actions' ; @ Injectable ( ) export class BookingEffects { loadBookings$ = createEffect ( ( ) => { return this . actions$ . pipe ( ofType ( BookingActions . loadBookings ) , concatMap ( ( ) => EMPTY ) ) ; } ) ; constructor ( private actions$ ) { } }