Get local html files (views/widgets) and insert them into your Cordova Single Page Application
Approach to load different views into an Android SPA.
- An index.html file with all the scripts, styles and so on.
- HTML, CSS and JS files at least as many as views in folders called view, css and js respectively and with the same names to not mess around. Ex: page.html, page.css and page.js
- We can use Axios to load views instead of the typical XMLHttpRequest that follows: