Just a simple trick today: You asked yourself how you can use page parameters in DrupalGap menus for pages?
It's quite easy to pass a link argument, but not yet well documented. The solution can be found here:
https://www.drupal.org/node/2175361
In hook_menu just create a dynamic path like this with a % placeholder:
function my_module_menu() {
var items = {
'my-product-details/%': {
page_callback: 'my_module_product_details_page',
page_arguments: [1],
region: {
name: 'header',
options: {
attributes: {
'data-icon': 'list',
'class': 'ui-btn-left'
}
}
}
},
}
}
The function called then gets the parameter passed:
function my_module_product_details_page(parameter1) {
// ...
}
That's it!