© Fu Cheng 2018
Fu ChengBuild Mobile Apps with Ionic 4 and Firebasehttps://doi.org/10.1007/978-1-4842-3775-5_8

8. View Comments

Fu Cheng1 
(1)
Sandringham, Auckland, New Zealand
 

So far, we have focused on the top stories page, which is also the index page of the app. Now we need to add new pages to show comments of a story and replies to a comment. Before adding those pages, we need to talk about page navigation in Ionic with Angular Router. In this chapter, we’ll first discuss Angular Router and then implement the page to show comments and replies.

Angular Router

Ionic apps are Single Page Applications, or SPAs, so there is no page reload after the initial page loading. To archive the similar effect as normal page navigation, a router watches the changes ...

Get Build Mobile Apps with Ionic 4 and Firebase: Hybrid Mobile App Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.