Ionic Uncaught (in promise): invalid link

后端 未结 5 801
再見小時候
再見小時候 2021-01-12 01:58

I have probably a problem with this.nav.push in Ionic. I have done a login/registration page but when I login, I get this error message. I have to add some code

5条回答
  •  暖寄归人
    2021-01-12 02:44

    The only problem in your code is when you write this.nav.push('HomePage'); remove the ' ' quotes when calling any page, and write like this.

    this.nav.push(HomePage); without quotes.

    Above answer is for ionic2, in ionic3 there is lazy loading where you call like this this.nav.push('HomePage');

提交回复
热议问题