New World Frontend Order - how Codeigniter fit in a javascript frontend world? |
(04-13-2020, 02:11 PM)albertleao Wrote: I'm not sure what you mean by "create routes by returning an axios call that points to a server api". No sorry, I explained it bad. I was trying load data and generate static html by using directly an api call with axios instead of populating a json and requiring it. The only example that I found of this kind of operation was in the route generation code. Anyway, I did it. I thought nuxtServerInit would work like asyncData (and make a request everytime you enter the page), instead with "nuxt generate" it required the data and etched it in my store and then in my static pages. Now I just need to understand how to take full control of the directories where put the generated files. Put the index.html in the app/View folder and the various assets in the /public folder. If I understood correctly your insights. |
Welcome Guest, Not a member yet? Register Sign In |