ionic3 入门【3】实现页面跳转

豆丁趣

关注

阅读 75

2022-07-14

效果图展示:


ionic3 入门【3】实现页面跳转_github

2.gif

补充说明两点:
1.新建立的一个组件模块需要

ionic3 入门【3】实现页面跳转_javascript_02

11.png

2.原文中有个地方没有备注news.ts中的参数,可能会导致报错,需要自己添加一下:
titleTitle: any = ''

  constructor(public navCtrl: NavController, public navParams: NavParams) {
this.titleTitle = this.navParams.get('title');
}

titleTitle: any = ''
ionViewDidLoad() {
console.log('ionViewDidLoad NewsPage');
}

补充ionic中三种跳转方式:

项目地址:​​https://github.com/Zhongxiangyun/ionic3Demo.git​​

github地址:​​https://github.com/Zhongxiangyun/ionic3Demo​​

精彩评论(0)

0 0 举报