diff --git a/README.md b/README.md index bcc5c5c..bd77e3b 100644 --- a/README.md +++ b/README.md @@ -229,6 +229,16 @@ Lifecycle hooks : { [beforeCreated], [created], [beforeMount], [mounted], 3. Modified App.vue to work with the router to role it back just `ctrl +z` 4. Router guards are the before and after events of a route +5. **DOWNLOAD** **[release 1.7.0](https://github.com/denOldTimer/releases/1.8.0)** + +--- + +## Advanced : Chapter 9 : Global State Management with Veux 4 + +1. install using the vue ui +2. +3. **DOWNLOAD** **[release 1.7.0](https://github.com/denOldTimer/releases/1.9.0)** + --- [data]: https://v3.vuejs.org/api/options-data.html#data-2 diff --git a/package-lock.json b/package-lock.json index 448090e..02c9fc8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,12 +11,14 @@ "core-js": "^3.6.5", "npm": "^7.6.1", "vue": "^3.0.0", - "vue-router": "^4.0.0-0" + "vue-router": "^4.0.0-0", + "vuex": "^4.0.0-0" }, "devDependencies": { "@vue/cli-plugin-babel": "~4.5.0", "@vue/cli-plugin-eslint": "~4.5.0", "@vue/cli-plugin-router": "~4.5.0", + "@vue/cli-plugin-vuex": "~4.5.0", "@vue/cli-service": "~4.5.0", "@vue/compiler-sfc": "^3.0.0", "babel-eslint": "^10.1.0", @@ -16718,6 +16720,14 @@ "integrity": "sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==", "dev": true }, + "node_modules/vuex": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/vuex/-/vuex-4.0.0.tgz", + "integrity": "sha512-56VPujlHscP5q/e7Jlpqc40sja4vOhC4uJD1llBCWolVI8ND4+VzisDVkUMl+z5y0MpIImW6HjhNc+ZvuizgOw==", + "peerDependencies": { + "vue": "^3.0.2" + } + }, "node_modules/watchpack": { "version": "1.7.5", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.7.5.tgz", @@ -31172,6 +31182,11 @@ "integrity": "sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==", "dev": true }, + "vuex": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/vuex/-/vuex-4.0.0.tgz", + "integrity": "sha512-56VPujlHscP5q/e7Jlpqc40sja4vOhC4uJD1llBCWolVI8ND4+VzisDVkUMl+z5y0MpIImW6HjhNc+ZvuizgOw==" + }, "watchpack": { "version": "1.7.5", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.7.5.tgz", diff --git a/package.json b/package.json index d10da5c..8fbf61b 100644 --- a/package.json +++ b/package.json @@ -12,12 +12,14 @@ "core-js": "^3.6.5", "npm": "^7.6.1", "vue": "^3.0.0", - "vue-router": "^4.0.0-0" + "vue-router": "^4.0.0-0", + "vuex": "^4.0.0-0" }, "devDependencies": { "@vue/cli-plugin-babel": "~4.5.0", "@vue/cli-plugin-eslint": "~4.5.0", "@vue/cli-plugin-router": "~4.5.0", + "@vue/cli-plugin-vuex": "~4.5.0", "@vue/cli-service": "~4.5.0", "@vue/compiler-sfc": "^3.0.0", "babel-eslint": "^10.1.0", diff --git a/src/App.vue b/src/App.vue index 2af8318..4bd52cc 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,8 +4,8 @@ -