Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

listen prop change vuejs

props: ['myprop'],
watch: { 
  myprop: function(newVal, oldVal) { // watch it
  console.log('Prop changed: ', newVal, ' | was: ', oldVal)
  }
}
 
PREVIOUS NEXT
Tagged: #listen #prop #change #vuejs
ADD COMMENT
Topic
Name
8+9 =