I am a little bit confused when working with both content pages and SPA on a NodeJS project.
At first I thought having content/template structure is the same thing as SPA? (correct me if I am wrong), but then I figured that the pages are refreshing every time I change a page, so clearly I am not implementing the SPA correctly.
I have a template called main, and I am using it for most of my views, and I have followed this guide to implementing it.
Now I am not sure how to implement the SPA guide in the template page which I have. Below is an example of the code which I have on the template page.
I tried following this guide Creating Single Page Apps (SPA). But having both routes and content views confuses me a little bit and its not working with me, can someone tell me what is the right way to implement SPA in this case?
I tried following the NodeJS guide for SPA, and the url is changing correctly, but the content page is not loading, so I only see the initial content page that loads the first time, then when I click on a different page the url changes but the content page stays the same.
I checked the routing and here is one example of how they all look like:
Are you sure you haven’t messed the page layout experimenting different things?
Please just create a new layout page and add a couple of views to it, following the tutorial to test.