Last active
March 14, 2019 10:46
-
-
Save arturovt/d8762c7183a5bf063ea6bab9afa1b002 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
@Injectable() | |
export class AppEffects { | |
@Effect() | |
public setAppInformation$ = this.actions$.pipe( | |
ofType(Actions.GET_APP_INFORMATION), | |
tap(() => { | |
console.log(NgZone.isInAngularZone()); // true | |
}), | |
exhaustMap(() => forkJoin([apiRequest1, apiRequest2, apiRequest3])) | |
); | |
constructor(private actions$: Actions) {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment