Istvan
Posts: 0
Joined: Mon Oct 13, 2014 1:48 pm

Navigate to page with query (ionic)

Hi

I would like navigate from a card item (click event) to other page where i need use a data from card (category id). This vale need to query service becouse i would like to show filtered items (on card too).

I dont know how can i do this

Im new in ionic, please help me.

thanks

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Navigate to page with query (ionic)

Hello Istvan,

Please use default method of Appery.io: navigateTo().

  1. Add a function goTo(page) with the following code:
    preApperyio.navigateTo(page);/pre

  2. Use that function in the ng-click attribute wherever you want, e.g.:
    preng-click=goTo("Home")/pre

    Here is a tutorial with that feature:
    https://devcenter.appery.io/tutorials...

Istvan
Posts: 0
Joined: Mon Oct 13, 2014 1:48 pm

Navigate to page with query (ionic)

OK
But i need to run a query service on the next page. I need a value from card item (it will be part of where).
How can i get this value and bind to next page query service?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Navigate to page with query (ionic)

Please define a variable on the index page, after that you'll be able to read/write it's value on any page of the app.

Example of it's usage you can find here: https://getsatisfaction.com/apperyio/...

Return to “Issues”