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

franciscolourenco picture franciscolourenco  路  3Comments

aviggngyv picture aviggngyv  路  3Comments

loki0609 picture loki0609  路  3Comments

robertleeplummerjr picture robertleeplummerjr  路  3Comments

6pm picture 6pm  路  3Comments