Articles
Latest
More
Newsletter Sponsorship Discord About
Sign up for our Newsletter
The video for this lesson is currently being updated, please read the transcript instead.
Advanced Vue 2 - Vuex & SSR > Lesson 44

Move mock data to HTML template

In order to get the events from the server into our app, the approach we're going to

take is, we're going to get the server to write the events into our index.html file.

So that when the user refreshes the page, they get this index.html file and all the

data is hard-coded into the file and that is used as the initial state.

So let's put a script tag here, we're just going to do a bit of a proof-of-concept in this video.

What we're gonna do is we're gonna create


Back to course page

Click to load comments...

Articles
  • Latest
Newsletter
  • Join
  • Sponsorship
More
  • Discord
  • Vue.js jobs
  • About

Vue.js Developers © 2021. View our privacy policy .

  • RSS
  • |
  • Atom