I want to assign props value in data and use this data value inside mounted. right now my approach is which is not working:
export default {
props: ['userid'],
data() {
return {
userID: this. userid
}
}
mounted() {
console.log(this.userID);
}
}
advance thanks for help.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2xvVIZc
via IFTTT
Aucun commentaire:
Enregistrer un commentaire