How to use a custom vue component ?? | Sololearn: Learn to code for FREE!


How to use a custom vue component ??

I have created a vue component named task list. When I am using it in body, it is working. But when I am trying to use it inside a Vue instance, I am getting an error. How can I do it ??

4/9/2019 5:55:28 AM

Arushi Singhania

3 Answers

New Answer


Split the script into head and body Component definition needs to be in head


Thx a lot Gordon !!!


First of all, your custom component has to be defined before the Vue instance. That's your only trouble ๐Ÿ˜…