• Search...

categories: Technology & Innovation

Customer Experience
Education
Software
Technology
Web

Vuex - State Management Library for Vue.js

Duration: 1 h 18 m / 15 lessons

Level: Specialized

Course Language: Arabic

By the end of this course, you will be able to

  • Recognize the concept of central state management in Vue.js applications and the benefits of using Vuex to improve the organization and management of state in large applications. You will understand how to set up a new Vue.js project and use Vuex, including how to install and configure Vuex to work in a Vue.js application.

  • Understand how to link Vue.js components to the central state managed by Vuex and understand how to use Vuex to exchange data between components.

  • Use (mapState) to connect the central state to components and learn about the concept of mutations in Vuex, including how to use and implement them to change the state.

  • Transfer data to mutations using payloads and use mapMutations to execute mutations from components.

  • Understand how to manage the state related to the shopping cart and learn how to define and use getters to retrieve data from the state more effectively. Additionally, you will understand how to execute and manage asynchronous operations and their impact on the state.

  • Develop a practical project that demonstrates how to use Vuex efficiently and effectively to manage the state in Vue.js applications.

Course details

  • 1 h 18 m/15 lessons
  • Last updated: 28/7/2024
  • 2 learning resources
  • Course completion certificate

Course Content

Free lessons

1.

Preparing the Project

2 Minutes
2.

Passing Data to Mutations with Payloads ​and Using mapMutations ​

5 Minutes
1.

Course Introduction

1 Minutes
2.

Benefits of Using Vuex-State Management Library

4 Minutes
3.

Preparing the Project

2 Minutes
4.

Connecting Components to State ​

3 Minutes
5.

Using mapState ​

4 Minutes
6.

Introducing Mutations - The Way of Changing Data

4 Minutes
7.

Passing Data to Mutations with Payloads ​and Using mapMutations ​

5 Minutes
1.

Project Implementation

5 Minutes
learning resources
2.

Add-to-Cart Option

11 Minutes
1.

Introducing Getters – ​A Better Way of Getting Data

3 Minutes
2.

Running Async Code with Actions ​

6 Minutes
3.

Organizing Your Store with Modules ​

7 Minutes
4.

Get a State/Getter From Another Module (Using rootState, rootGetters)

8 Minutes
1.

Project Implementation

6 Minutes
2.

Course Wrap Up

2 Minutes
learning resources

About this course

Vue.js is a popular framework for developing web user interfaces due to its simplicity and ease of use. As applications grow more complex, managing state centrally and efficiently becomes crucial. Vuex, the official state management library for Vue.js, addresses this need by providing a comprehensive solution for managing state in Vue.js applications. In complex applications like e-commerce platforms with interactive components, effective state management is essential to avoid convoluted and repetitive code. Vuex simplifies this by offering a centralized system to manage data, facilitating smooth information exchange between components and ensuring quick and efficient application responses. This course offers an in-depth exploration of Vuex, starting with its theoretical and practical foundations. You'll learn to set up projects and integrate Vuex step by step, connect components to the central state using tools like mapState, and make state changes using mutations to maintain data consistency. You'll also learn to enhance your application's efficiency by passing data to mutations using payloads, utilizing mapMutations, and building a practical project to apply these skills. Additionally, the course covers using getters for efficient data retrieval, running asynchronous operations with actions, and organizing your store using modules for flexible state management. By the end of the course, you'll have a thorough understanding of using Vuex to manage state in Vue.js applications, enabling you to build organized, maintainable, and scalable applications. This will elevate your skills as a web developer, preparing you for the challenges of developing large and complex applications.

Course requirements and prerequisites

You should have a good knowledge of JavaScript and Vue.js

Mentor

Looking for help?