Answers for "vue get props into data"

0

vue get props into data

props : {
        users : Array,
        currentuser: Number,
        todoId : Number
    },
    mounted() {
        this.current = this.currentuser
    },
    data(){
        return{
            current: null
        }
Posted by: Guest on October-01-2020
0

vuejs accessing props from data

data: function() {
  var theData = {
    somevar: this.messageId,
    // other object attributes
  }

  return theData;
}
Posted by: Guest on June-30-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language