Posts

Showing posts from April 11, 2019

Separating start and end tags for conditional rendering

Image
1 <template> <div> <template v-if="isFieldsetElement"> <fieldset> <legend>Label Here</legend> </template> <template v-else> <label>Label Here</label> </template> <span> Description </span> <img src="image.png" /> <div>more stuff here </div> <template v-if="isFieldsetElement"> </fieldset> </template> </div> </template> I'm unable to do this tag separation. Basically I have a separate header and footer (for the lack of better word) but I can't do this in Vue like its possible in server-side generated mar