I am getting started with Drupalgap and trying to access nodes on my Drupal site by node ID from within Drupalgap. I have checked the Node and Node Services documentation. I thought I could use the node_page_view(nid) function like this:
function mymodule_sample_page() {
try {
node_load(11, {
success:function(node){
alert("Loaded " + node.title);
}
});
return node_page_view(11);
}
catch (error) { console.log('mymodule_sample_page - ' + error); }
}
However, when I attempt to test this in my module, I get the alert "Loaded your node" but the content is not actually displayed on the page by node_page_view(). What do I need to do to display the content?