Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

vue get props into data

	props : {
        users : Array,
        currentuser: Number,
        todoId : Number
    },
    mounted() {
        this.current = this.currentuser
    },
    data(){
        return{
            current: null
        }
 
PREVIOUS NEXT
Tagged: #vue #props #data
ADD COMMENT
Topic
Name
7+7 =