1
嗨Stackoverflow团队!NGRX 4角色特效4.3 httpClient
我有这个效果,我在角色4.3 httpClient服务上使用ngrx 4。 问题是我看不到有关如何一起使用它们的任何示例。 我看到现在,随着HttpClient的,我们需要使用订阅()方法,所以目前尚不清楚是什么回报,例如在下面的代码:
@Effect()
login$ = this.actions$
.ofType(Auth.LOGIN)
.map((action: Auth.Login) => action.payload)
.exhaustMap(auth =>
this.authService
.login(auth)
.map(user => new Auth.LoginSuccess({ user }))
.catch(error => of(new Auth.LoginFailure(error)))
);
所以,我需要了解在这条线的逻辑: 的.login(AUTH) 非常感谢