Ionic 2 dynamic side menu



I would like some advice on dynamically controlling the side menu in an ionic 2 app.
My app is using the sidemenu starter template, and would like to be able to programmatically edit the list of pages created in app.component.ts, from within other page components.
How is this best acheived?