constructor(
        private dataService: TestListsService,
        private route: ActivatedRoute,
      ) {
      // 通过路由获取ID
      console.log(route);
      this.id = this.route.params.value['id'];
    }
import { ActivatedRoute } from '@angular/router';

angular 通过路由获取ID

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-25
  • 2021-12-05
  • 2022-01-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-04-07
  • 2021-07-21
  • 2021-09-07
  • 2022-12-23
  • 2021-03-26
相关资源
相似解决方案