美文网首页
ionic3 入门【3】实现页面跳转

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

作者: 追逐繁星的阿忠 | 来源:发表于2018-09-19 11:15 被阅读14次

原文地址: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

相关文章

网友评论

      本文标题:ionic3 入门【3】实现页面跳转

      本文链接:https://www.haomeiwen.com/subject/ulnbnftx.html