fbpx

An Overview of VueJS Dynamic Components

VueJS Dynamic Components can be an extremely convenient way to make your code both more readable and adaptable. They can simplify several conditional components (ones toggled using v-if, v-else-if, v-else) into just one line of code.  In short, they allow you to toggle between different …

An Overview of Vue Keep-Alive

When working with dynamic components, Vue recreates new instances of components when you switch the value of the :is directive. While it’s useful in most cases, there are times when we want to save the state of a hidden element.  Meet Vue keep-alive components.  Depending …