Page 1 of 1

Navigate to page with query (ionic)

Posted: Tue Apr 19, 2016 6:05 pm
by Istvan

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


Navigate to page with query (ionic)

Posted: Tue Apr 19, 2016 7:39 pm
by Serhii Kulibaba

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...


Navigate to page with query (ionic)

Posted: Tue Apr 19, 2016 8:28 pm
by Istvan

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?


Navigate to page with query (ionic)

Posted: Wed Apr 20, 2016 3:03 pm
by Serhii Kulibaba

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/...