Vue: Feature Request allow to change the value of scoped slots props

Created on 11 Dec 2016  路  1Comment  路  Source: vuejs/vue

Im doing something like this

In my scoped slot component
<slot :search="search" :searchKey="searchKey" name="search"></slot>

In the parent

      <template slot="search" scope="props">
        <md-button @click="props.search = 'Search Value'"> Owned Items </md-button> 
      </template>

Most helpful comment

You can simply pass in a method prop instead.

>All comments

You can simply pass in a method prop instead.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fergaldoyle picture fergaldoyle  路  3Comments

bfis picture bfis  路  3Comments

bdedardel picture bdedardel  路  3Comments

julianxhokaxhiu picture julianxhokaxhiu  路  3Comments

gkiely picture gkiely  路  3Comments