title: Vue.js unknown custom element
body: <p>I'm a beginner with Vue.js and I'm trying to create an app that caters my daily tasks and I ran into Vue Components. So below is what I've tried but unfortunately, it gives me this error:</p>
  
  <blockquote>
    <p>vue.js:1023 [Vue warn]: Unknown custom element:  - did you
    register the component correctly? For recursive components, make sure
    to provide the "name" option.</p>
  </blockquote>
  
  <p>Any ideas, help, please?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>new Vue({
    el : '#app',
    data : {
      tasks : [
        { name : "task 1", completed : false},
        { name : "task 2", completed : false},
        { name : "task 3", completed : true}
      ]
    },
    methods : {
    
    },
    computed : {
    
    },
    ready : function(){
  
    }
  
  });
  
  Vue.component('my-task',{
    template : '#task-template',
    data : function(){
      return this.tasks
    },
    props : ['task']
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.26/vue.js"&gt;&lt;/script&gt;
  &lt;div id="app"&gt;
    &lt;div v-for="task in tasks"&gt;
        &lt;my-task :task="task"&gt;&lt;/my-task&gt;
    &lt;/div&gt;
    
  &lt;/div&gt;
  
  &lt;template id="task-template"&gt;
    &lt;h1&gt;My tasks&lt;/h1&gt;
    &lt;div class=""&gt;{{ task.name }}&lt;/div&gt;
  &lt;/template&gt;</code></pre>
  </div>
  </div>
  </p>