typescript Angular订阅查询param id和fetch API

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了typescript Angular订阅查询param id和fetch API相关的知识,希望对你有一定的参考价值。

ngOnInit() {
  
 this.route.queryParamMap
  .switchMap((params: Params) =>
    this.service.fetchCardUuid(params.get('id')))
  .subscribe(
    card => {
      this.card = card;
      this.getVenueUuid(this.card);
    });
    
}

以上是关于typescript Angular订阅查询param id和fetch API的主要内容,如果未能解决你的问题,请参考以下文章