Syntax Quirks in Vue.js

Posted on February 7, 2025 The markup used in a Vue.js .vue file is a melange of JavaScript, TypeScript, HTML, and a few other bits of punctuation thrown in for good measure. I encountered one of the odd corners of this today, and as it took me an hour to figure all of this out and the documentation sort of hand waves around it , I thought I should write my notes down here. Briefly, when you’re…