Skip to content
This repository has been archived by the owner on Jun 8, 2020. It is now read-only.

serversideup/mke-js-contact-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mke-js-contact-manager

VueJS SPA Example from the 8/27/2019 MKE JS Meetup

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your tests

npm run test

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

Vue Directives

Lifecycle Hooks Used

  • created() Lifecycle hook that runs before HTML is injected or bound. We call our Vuex dispatch to load data here.

Basic API Requests

  • GET
  • POST
  • PUT
  • GET (with ID)

Basic JS API Requests

  • show()
  • index()
  • store()
  • update()

How I Watch Request Lifecyle

  • 0 Nothing Happend Yet
  • 1 Loading
  • 2 Successful
  • 3 Failed

Watchers

You can watch computed data or data in your component. When these change you can perform a function.

Vuex Flow

  1. Dispatch Action
  2. Run Action
  3. Call Mutation with new data
  4. Get Data
  5. Component re-renders data

About

VueJS SPA Example from the 8/27/2019 MKE JS Meetup

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published