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 45

Splicing mock data into HTML file

Now what we can do is rather than hard-coding this initial state into a template like this,

we can just remove this script tag entirely and I'm going to put a marker in there.

This is basically just an HTML comment, but what we're going to do is we're going to use

that to figure out how to, where is it, server over here.

That's basically going to be like a split point in a template.

You'll notice that in our server here when for our get route, for the the root path,


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