How does Vue slot work?

Slot Content Vue implements a content distribution API inspired by the Web Components spec draft , using the <slot> element to serve as distribution outlets for content. If <navigation-link> ‘s template did not contain a <slot> element, any content provided between its opening and closing tag would be discarded.

Read more

What is Vuex module?

To help with that, Vuex allows us to divide our store into modules . Each module can contain its own state, mutations, actions, getters, and even nested modules – it’s fractal all the way down: const moduleA = { state: () => ({ … }), mutations: { … }, actions: { …

Read more

How does Vue state management work?

Vuex is a state management library for Vue. js, that is based on the Flux pattern. In the above code, the increment function is a dispatcher that updates the value of the count property . When we have full control over every state change, we can easily track all of them and make our app much easier to debug.

Read more