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

原文地址:https://blog.csdn.net/weixin_39461487/article/details/78968074

效果图展示:


2.gif

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

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://blog.csdn.net/qq993284758/article/details/77658489] (https://blog.csdn.net/qq993284758/article/details/77658489)

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

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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。