Use of Vue Single File Components? #321

Closed
opened 2025-08-09 17:15:50 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @RehanSaeed on 11/10/2017

I'm new to Vue and it's single file components which I think is an optional way of putting together your components.

Apart from separation of concerns and perhaps better tooling (I think VS Code handles them ok), is there a reason why the TypeScript files are separated from the html and why a .vue.html file extension is used? Switching to a single file .vue file extension just means chaning the file extension in Webpack config right?

*Originally created by @RehanSaeed on 11/10/2017* I'm new to Vue and it's [single file components](https://vuejs.org/v2/guide/single-file-components.html) which I think is an optional way of putting together your components. Apart from separation of concerns and perhaps better tooling (I think VS Code handles them ok), is there a reason why the TypeScript files are separated from the html and why a `.vue.html` file extension is used? Switching to a single file `.vue` file extension just means chaning the file extension in Webpack config right?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#321
No description provided.