Ionic 3 - a tag href internal link

15,690

You're doing it wrong. Ionic has its own navigation system.So you need to use it to navigate one page to another or like so.

this.nav.push(listpage);

Please see the official doc for more info about navigation and NavController

Share:
15,690
jonwa
Author by

jonwa

Updated on June 04, 2022

Comments

  • jonwa
    jonwa almost 2 years

    So I'm new to Ionic and Angular and I had a question regarding internal links within the Ionic framework. So as a learning base I made the pre-made project ionic sidemenu and I'm trying to get an A tag on the home page to be linked (href) to open the list page. However, I cannot figure it out because I keep getting errors.

    Something like:

    <a button href="../list/list.html"></a>
    

    But the href isn't working because I think you have to call /list/list as a package with typescript??

    Does anyone know the solution?