小编Sho*_*fol的帖子

如何将边框半径添加到角垫表?

我正在尝试将mat-table边界设为圆形。但它不起作用。试过这个-

table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 1em;
}
Run Code Online (Sandbox Code Playgroud)

如何实现这一目标?

angular-material angular mat-table

3
推荐指数
2
解决办法
7505
查看次数

如何在Angular和RxJ中管理多个顺序订阅方法?

我需要拨打两个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)

javascript rxjs typescript angular

0
推荐指数
1
解决办法
1109
查看次数