Angular, how to get rid of nested subscriptions?

前端 未结 0 1441
天涯浪人
天涯浪人 2020-12-06 03:56

ngOnInit(): void { this.match$ = this.route.paramMap.pipe( switchMap((params: ParamMap)=> this.matchservice.getById(params.get(\'id\')) ) );

t         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题