I'm using vue.js to make a query with a value from a view but when I pass the value of the props I get the impression of the console as "undefined" because of that I can not make any query for the undefined value you send this is the code I am using:
import ApiCanal10 from '../lib/api-canal10'
export default {
props: ['idVideo'],
data: () => ({
videos: []
}),
created() {
//do something after creating vue instance
this.api = new ApiCanal10({})
this.getRelVideos()
},
methods: {
getRelVideos: function() {
//este es lo que se envia la consola
console.log('video/related/${this.idVideo}')
}
}
}
Due to the indefinite can not do the queries that are needed to show the information.