re: Explain Vue to Me VIEW POST

TOP OF THREAD FULL DISCUSSION
re: This is how a Vue component looks like: <template> <div>{{msg}}</div> </template> <script> export default{ ...
 

I love the single file component thing by default. I never really liked the whole thing where all the JS logic is sort of broken down like object properties. It reduces my flexibility in how I write my code. I'm sure some people must love it but it's not really for me. Can you maybe elaborate on why you like that? Help me understand. I'd like to use vue more

 

I never really liked the whole thing where all the JS logic is sort of broken down like object properties.

Are you referring to having properties inside export default in script tag? I think it is useful since If someone else reads my code he would know where to go to see what happens when a component is mounted or updated or he can tell what variables I am using by simply looking at data

code of conduct - report abuse