Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Most probably a mistake in the code of "Separation of Concern" section in the documentation of "Single File Component" #2899

Open
nikunj-glorywebs opened this issue Oct 27, 2021 · 0 comments

Comments

@nikunj-glorywebs
Copy link

I have just started learning VueJS. In the https://vuejs.org/v2/guide/single-file-components.html#What-About-Separation-of-Concerns (https://github.com/vuejs/vuejs.org/blame/master/src/v2/guide/single-file-components.md#L50) there is code <style src="./my-component.css"></style>. Style tag doesn't have the src attribute. Does VueJS support this markup (linking CSS file with src attribute in style tag/element)? I can't find any reference in documentation regarding support of this markup, nor it seems working with Vue 2.x. Shouldn't it be as following?:

<style>
@import('./my-component.css');
</style>

Or <link href="./my-component.css" rel="stylesheet">?

BTW, the title also seems grammatically incorrect. Shouldn't it be "Concern of Separation" instead of "Separation of Concern"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant