How do I use an Appery call to get the current page name so that I can create logic for pagination using Appery(myPage, {});
How do I use an Appery call to get the current page name so that I can create logic for pagination using Appery(myPage, {});
Hi -
You can try something like this:
precode
var pagePathName= window.location.pathname;
return pagePathName.substring(pagePathName.lastIndexOf("/") + 1);
/code/pre
Apperyio.CurrentScreen seems to do the trick also.
When testing in the mobile web test emulator only works Apperyio.CurrentScreen
The other code shows my default start page but not current page in the emulator.
Hello,
What project type do you use JQM or Ionic?
Could you please specify do you need any assistance with it?