-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Closed
Description
Hi
I'm using watches in my code, it's working
watch: { oItems: function(newVal){ } }, created(){ this.fetching(); }, methods:{ fetching(){ axios.get(this.buildUrl) .then(response=>{ this.oItems = response.data; }) } }
but I always get [Vue warn]: Error in callback for watcher "oItems":
fetching(){ axios.get(this.buildUrl) .then(response=>{ this.oItems = response.data; _.map(this.oItems, (oVal=>{ // stuff here })); }) }
Could you explain me why?
Metadata
Metadata
Assignees
Labels
No labels