this is how it jumps in another route:
_this.router.navigate(["/examdetail"], { queryParams: { examid: _this.examId[dataIndex]}});
when jumping to the examdetail route, only constructor,ngOnInit is triggered, not triggered:
ngOnInit() {
console.log(222);
}
oninitoninit