angular4中组件之间页面切换的数据传递,通过路由传递数据

例如在表格中有一个详情按钮,跳转到另外一个页面, 首先需要在所在页面和跳转页面引入路由组件和跳转界面路由组件 selectMsg(productID:number,productName:any,productCome:any){ // 跳转页面 return this.router.navigate(['product-element',{"productID":productID,"produ
相关文章
相关标签/搜索