Dynamically Switching From One HTML Element to Another in Vue A friend once contacted me asking if I had a way to dynamically change one HTML element into another within Vue’s template block. For instance, shifting a <div> element to a <span> element based on some criteria. The trick was to do this without relying on a series of v-if and v-else code. I didn’t think much of it because I couldn’t se