我正在尝试将mat-table
边界设为圆形。但它不起作用。试过这个-
table {
width: 100%;
border-collapse: collapse;
border-radius: 1em;
}
Run Code Online (Sandbox Code Playgroud)
如何实现这一目标?
我需要拨打两个http服务呼叫,并在订阅另一个http服务呼叫后订阅它们。我的意思是,该操作将是连续的,因为最后两个调用取决于第一个。可以使用RxJs的concatMap处理此操作吗?
我使用嵌套订阅解决了该问题。但是,我认为使用concatMap可以做到。在我搜索的所有示例中,有两个串联的调用。如何合并两个以上的订阅并解决问题。
this.accountService.fetchBranchCodeLength().subscribe(
data => {
this.branchCodeLength = +data;
//Now, I need to call another service to calculate
accountNumberLengthWithProductCode//
this.subscribers.fetchAcoountNumberLength =
this.accountService.fetchAccountLengthConfiguration().subscribe(
accountLength => {
this.accountNumberLengthWithProductCode =
(+accountLength) - (+this.branchCodeLength);});
//Another same kind of call to calculate
SUBGLCodeLength//
this.subscribers.fetchSUBGLCodeLengthSub =
this.glAccountService.fetchSUBGlCodeLength(SUBGlCodeQueryParam)
.subscribe(length => this.SUBGLCodeLength =
(+length.value) - (+this.branchCodeLength)
);
}
);
Run Code Online (Sandbox Code Playgroud)