DEV Community

Discussion on: Understanding Vue by building a country directory app Part 2

Collapse
 
mccrush profile image
Sergey Nikolaev

Hey.
Why are you importing components from the root directory: './nameOfComponent'?

After all, they are in the components folder. It may be better to use a component path like this: '@/components/nameOfComponent'

where '@' denotes the root directory.

Collapse
 
saucekode profile image
Chiamaka Mbah

Yea, you're right. Babel style, right? Will throw that in. Thank you.