DEV Community

Cover image for An introduction to Single File Components in VueJS

An introduction to Single File Components in VueJS

Sam Benskin on June 12, 2018

NOTE: Please be aware this article is now out of date as the tech has moved on since I wrote it in 2019. What are they? Single File Com...
Collapse
 
risafj profile image
Risa Fujii • Edited

Thanks for an straightforward intro to SFCs! I especially appreciated the example you gave using pug and SASS. Just noticed what might be a typo in your first code block (extra 's'), so letting you know for cleanliness's sake :)

module.exports = {s
       data: function() {
           return {
               name: 'Sam'
           }
       }
    }
Collapse
 
sambenskin profile image
Sam Benskin

Thanks the kind words and I've now fixed the typo 😀