Answer the question
In order to leave comments, you need to log in
Why is the vue component not working?
Hello. I'm starting to learn vue.js. I do not understand why the example from the documentation does not work.
I define a component
Vue.component('todo-item', {
template: '<li>Это todo</li>'
})
<ul>
<todo-item></todo-item>
</ul>
Answer the question
In order to leave comments, you need to log in
You have created a component for vue but have not instantiated the vue itself: https://jsfiddle.net/nu41bvfq/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question