Deciders
Content Deciders
@Effect()
save = this.actions$.pipe(
ofType<SaveUser>(UserActionTypes.SaveUser),
map(action => {
if (action.payload.user.id > 0) {
return new UpdateUser(action.payload);
} else {
return new InsertUser(action.payload);
}
})
);
Last updated
Was this helpful?