Get page name javascript
How do I use an Appery call to get the current page name so that I can create logic for pagination using Appery(myPage, {});
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
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?