2
這實際上是自我記錄,但它可能對其他人有用。RxJS管道如何工作(可出租操作員)
所以,這裏的2個代碼和我的小膠質問題:
什麼是這兩個?:
@Effect()
loadRegistrationsFailed$: Observable<Action> = this.actions$
.ofType(registrations.LOAD_FAIL)
.pipe(
map(
action =>
new ShowErrorDialogAction({
correlationId: new Guid(),
title: "Server is unreachable",
message:
"Can't load user registrations. Can't connect to the server"
})
)
);
```
and
```
@Effect()
loadRegistrationsFailed$: Observable<Action> = this.actions$
.ofType(registrations.LOAD_FAIL)
.pipe(action =>
of(
new ShowErrorDialogAction({
correlationId: new Guid(),
title: "Server is unreachable",
message:
"Can't load user registrations. Can't connect to the server"
})
)
);