跳转路由
import {
Router,
ActivatedRoute }
from
'@angular/router';
constructor(
private
native:
CordovaUtilsService,
private
service:
ApiService,
private
page:
JdbPageManager,
private
router:
Router,
private
route :
ActivatedRoute,
private
changeDetectorRef:
ChangeDetectorRef
) {
super();
}
this.
router.
navigate([
'/yinhu/app/product-re'],{
queryParams:{
orgId:reItem.
orgId}});
获取路由参数
ngViewEnter() {
this.route.queryParams.subscribe((params: any) => {
this.orgId = params.orgId || '';
console.log(this.orgId,'lunlun');
});
}