View Code? Open in Web Editor
NEW
Starter code for the Vuex 4 ts course
License: MIT License
JavaScript 5.02%
HTML 5.56%
Vue 76.46%
TypeScript 12.96%
vuex-4-ts-course-starter's Introduction
- upgrade/migrate to Vue.js 3
- npm i bootstrap 5 next
- npm i bootstrap-icon
- Navbar
- Heroes (class card)
- npm i vue-router next
- Router
- npm i vuex 4 next
- Setup Vuex 4 - hero module
- Get Request (v-for)
- Delete Request (class btn btn-danger)
- Post Request (Form)
- Put Request (editingTracker, v-if, v-else)
- Done! Now do the Villain part with its own page and Vuex module.
- create store
- write a module
- write a state
- npm i axios
- write an api service
- write a type
- write an action
- write a mutation
- write a getter
- update components with mapGetters and mapActions
- npm i concurrently json-server
- copy-paste db.json
vuex-4-ts-course-starter's People
Contributors
Watchers