一、商品列表
1. 创建商品列表页面
ionic g page productlist
2. 页面跳转(点击tab2分类页面右侧的商品分类,跳转到商品列表页面,并把值传过来)
(1)实现简单跳转
【tab2.page.html】
[routerLink]="[ '/productlist' ]"
【productlist.page.html】
返回按钮 i-back-button
(2)传值 [queryParams]="{ cid:item._id }"
一、商品列表
1. 创建商品列表页面
ionic g page productlist
2. 页面跳转(点击tab2分类页面右侧的商品分类,跳转到商品列表页面,并把值传过来)
(1)实现简单跳转
【tab2.page.html】
[routerLink]="[ '/productlist' ]"
【productlist.page.html】
返回按钮 i-back-button
(2)传值 [queryParams]="{ cid:item._id }"