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) 非常感謝