Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

vue computed composition api

  setup (props) {
    const repositories = ref([])

    const repositoriesMatchingSearchQuery = computed(() => {
      return repositories.value.filter(
        repository => repository.name.includes(searchQuery.value)
      )
    })
    
    return {repositories}
  }
Source by v3.vuejs.org #
 
PREVIOUS NEXT
Tagged: #vue #computed #composition #api
ADD COMMENT
Topic
Name
3+4 =