[Vuejs]-Vue : Cannot pass the value from parent to child component

4👍

You forgot the props attribute in your TodoList component:

export default {
  name: 'TodoList',
  props: ['todos'],
  components: {
    Todo
  },
  created() {
    console.log(this);
  }
};

Leave a comment