2016-08-22

I'm using Angular2 with @ngrx/store & effects... I have an authenticate effect like this

Within the update.action.payload object is a rememberMe flag. So... if set to true i need to store the credentials in a LocalStorage service AFTER the api request has returned successfully... but obviously not if there is an error.

How can this be achieved as inside the switchMap operator we only have access to the result of the api post call?

Show more