Courses
Vue Foundations Vue Fullstack Vue Enterprise
Articles
Latest Topics
More
Newsletter Sponsorship Discord About
The video for this lesson is currently being updated, please read the transcript instead.
Enterprise Vue > Lesson 124

Adding Vuex to preview components

Some of the components we'd like to create live previews for have Vuex as a dependency. To preview these components, we'll need to add the store to the Wrapper component, and also create Vuex ORM model instances for them to bind to.

Store

Let's being by importing Vuex into the wrapper by going to the top of the file and putting import Vuex from "vuex"; . We'll also import our existing store config by going import storeConfig from "@/store";.


Back to course page

Click to load comments...

Courses
  • Vue Foundations
  • Vue Fullstack
  • Vue Enterprise
Articles
  • Latest
  • Topics
Newsletter
  • Join
  • Sponsorship
More
  • Discord
  • Vue.js jobs
  • About

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

  • RSS
  • |
  • Atom