So far, we have always kept our controllers separate from templates/views and styles. You may not be pleased with SFC as there are mixing concerns. To some extent, this is a matter of taste, but as components grow, it makes less and less sense to keep everything in a single file.
Actually, we can also separate the different parts of a component with Vue.js and TypeScript. We'll see how in this section.
We'll use the previous code sample as a starting point. Make a copy ...