Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how set function when props update in vue

  export default {
  data(){
  	return{
    	result:[]
  	}
  },
  props:['res'],
    watch:{
        result(value){
            this.result.push(value)
        }
    }
}
 
PREVIOUS NEXT
Tagged: #set #function #props #update #vue
ADD COMMENT
Topic
Name
6+5 =