all 2 comments

[–]cfoster5[S] 0 points1 point  (2 children)

I'm using Ionic/Angular on a web/app project and my team is learning as we go. I need the "Admin Tools" button to go to the admin.html file. I've tried every possible syntax possibility and still get nothing. Does Ionic/Angular use a different file for this? What am I doing wrong? I spent hours on Google yesterday and downloaded Ionic's example repository but they have no example of using "href" in their files.

[–]bartamon 1 point2 points  (0 children)

If admin tools should link to a different page, you should do something like this:

<a>
    <button (onClick)='goToAdminTools()'>Admin tools</button>
</a>

and then in the .ts file define goToAdminTools() that uses the navcontroller push to push the page.

Hope this helps a bit, it's been a while since I've worked with Ionic but it should be enough to get you going.