Skip to content

CodingGarden/vue-state-components-props

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

State Management, Component Hierarchy and Props with Vue.js

Overview

  • All state will live in the rockets component
  • Data will be passed as props to child components
  • Child components will call functions in parent components
  • API: https://rockets.now.sh/
<app>
  <rockets>
    <new-rocket-form
      :addRocket="addRocket">
    </new-rocket-form>
    <rocket-list
      :rockets="rockets"
      :removeRocket="removeRocket">
      <rocket
        :rocket="rocket"
        :removeRocket="removeRocket">
      </rocket>
    </rocket-list>
  </rockets>
</app>

Stretch

  • Convert to vuex
  • Refactor player score counter, todo app, reddit clone app to use more components
  • Refactor player score counter, todo app, reddit clone app to use vuex

About

This is the code for my live stream.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published