Most probably a mistake in the code of "Separation of Concern" section in the documentation of "Single File Component"
nikunj-glorywebs opened this issue · 0 comments
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"?