How to get specific pages?

Hi!

Can you help me with this one?

I am working on an app that has the following features:
-working Login/Signup page
-Home -> Sidemenu (ListPage, IncomePage)

What i want to do is: on the backend side the authenticated account gets an ID (id1 and id2), and i need this:
If a person is ID1, then he can only see and use the ListPage option.
If a person is ID2, then he can only see and use the IncomePage.

How can I achieve this? What would you recommend?

Thanks in advance,
Astrix

@Astrix You can use ionic events to implement this functionality.
ionic3 events

1 Like

Use the ionic conference starter app to get a nice example

1 Like

In your menu.ts, have an if-else condition to store the pages array

1 Like

Thank you very much!

1 Like