1.导入
在ts文件中导入
import {Router} from '@angular/router';
2.注入依赖
constructor(private router: Router,) {
}
3.使用
this.router.navigate([`manage/bill-o/${this.objDetail.id}`]);
1.导入
在ts文件中导入
import {Router} from '@angular/router';
2.注入依赖
constructor(private router: Router,) {
}
3.使用
this.router.navigate([`manage/bill-o/${this.objDetail.id}`]);