1×
Become a member
to unlock all features
Autoplay

    Switch Between Vue Components with Dynamic Components

    vueVue.js
    ^2.5.9

    A common scenario is to present different components based on the state of the application. Dynamic components in Vue make this simple by providing a component element that simply needs to be bound to the component that you want to render. This example shows using a select dropdown in Vue to select the component to render.