2👍
✅
I don’t know how to do it in coffeescript, but I think the issue is that this
doesn’t refer to Vue within the callback function, so setting this.book
isn’t working. Normally you can fix this using .bind(this)
on the function, or setting var vm = this
before the ajax call and setting vm.book
in the callback.
👤Jeff
Source:stackexchange.com