Before I installed my router I set up a global Vue instance and used vue-resource like this:
export const befriend = (recipient, event) => {
Vue.http.post('/route',{
// Data
}).then(function(response) {
// Success
}.bind(this), function(response) {
// Error
});
}
Now my Vue instance is being instantiated by the router itself like this:
router.start(App, 'body');
How can I use vue-resource when I have no variable bound to my instance?