© Fu Cheng 2017

Fu Cheng, Build Mobile Apps with Ionic 2 and Firebase, 10.1007/978-1-4842-2737-4_6

6. View Comments

Fu Cheng

(1)Sandringham, Auckland, New Zealand

So far we 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 we begin adding those pages, we need to talk about page navigation in Ionic.

Navigation

In the constructor of TopStoriesPage class, an instance of NavController is injected. NavController is used to navigate between different pages in the app. NavController maintains an array of pages that represent the navigation history. This array can be directly manipulated by adding or removing pages at arbitrary locations of ...

Get Build Mobile Apps with Ionic 2 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.