vue-chimera
vue-chimera copied to clipboard
Trying to disable API call when page is loaded
The problem is that "itemOnly" runs when the page loads.
export default {
chimera: {
items () {
return {
url: '/items',
}
},
itemOnly() { //<----- here: I don't want it to run when the page loads.
return {
url: `/items/${this.itemSelected}`,
}
},
},
data () {
return {
itemSelected: null
}
},
methods:{
},
mounted(){
}
}
Thank you for your contribution to the community.