Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

provide inject vue

app.component('todo-list', {
  // ...
  provide() {
    return {
      todoLength: Vue.computed(() => this.todos.length)
    }
  }
})
 
PREVIOUS NEXT
Tagged: #provide #inject #vue
ADD COMMENT
Topic
Name
9+6 =