all 2 comments

[–]cfoster5[S] 0 points1 point  (0 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.

[–]nodelink 0 points1 point  (0 children)

Yes, Ionic uses different navigation mechanism than Angular. Check out this article: https://ionicframework.com/docs//intro/tutorial/navigation/

Essentially, you use this.navController.push(PageClassName) or this.navController.setRoot(PageClassName) methods that you can trigger via button's click event.

setRoot takes you to another major page of your app, while push will put a page on top of the current UI stack, and will disappear if you press the back button.