Vue.js 2 State Management With Vuex - Introduction
27.3 هزار بار بازدید -
7 سال پیش
-
Vue.js 2 State Management With
Vue.js 2 State Management With Vuex - Introduction
If your Vue.js application grows bigger and consists of multiple components you might run into the problem of how to share data across the those components and make sure that components which are using the same data are always updated if data is changing.
However, if your application is small you can solve this problem by emitting events to inform other components about data changes. If you applications grows bigger keeping track if all those events becomes difficult and it's hard to keep the overview of components which need to trigger events and components which need to listen to those events.
To solve that problem you can use Vuex which makes it possible to use a centralized state management in your application. Vuex is a library which helps you to enforce a Flux-like application architecture in your Vue.js 2 application. In this video tutorial you'll learn Vuex basics and also be able to follow a practical example to implement central state management with Vuex in your Vue.js 2 application
This is a CodingTheSmartWay.com tutorial
---------------------
Musik:
Night Owl by Broke For Free is licensed under a Creative Commons Attribution License.
(http://freemusicarchive.org/music/Bro...)
If your Vue.js application grows bigger and consists of multiple components you might run into the problem of how to share data across the those components and make sure that components which are using the same data are always updated if data is changing.
However, if your application is small you can solve this problem by emitting events to inform other components about data changes. If you applications grows bigger keeping track if all those events becomes difficult and it's hard to keep the overview of components which need to trigger events and components which need to listen to those events.
To solve that problem you can use Vuex which makes it possible to use a centralized state management in your application. Vuex is a library which helps you to enforce a Flux-like application architecture in your Vue.js 2 application. In this video tutorial you'll learn Vuex basics and also be able to follow a practical example to implement central state management with Vuex in your Vue.js 2 application
This is a CodingTheSmartWay.com tutorial
---------------------
Musik:
Night Owl by Broke For Free is licensed under a Creative Commons Attribution License.
(http://freemusicarchive.org/music/Bro...)
7 سال پیش
در تاریخ 1396/01/19 منتشر شده
است.
27,378
بـار بازدید شده