Dynamic Vue.js Components with the component element

You can dynamically switch between components in a template by using the reserved <component> element and dynamically bind to its is attribute. By using <keep-alive> you can tell Vue to keep the component in memory.

Please take a moment to tell your friends:

You must be a PRO Member to view code