Skip to content

Instantly share code, notes, and snippets.

@felisio
Created July 12, 2016 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felisio/717d135fef4d459b3c809d4edcd5674d to your computer and use it in GitHub Desktop.
Save felisio/717d135fef4d459b3c809d4edcd5674d to your computer and use it in GitHub Desktop.
generic actions
mport Vue from 'vue'
console.log(Vue.http);
export const resources = {
employees : Vue.resource('employees{/id}')
}
export function getAllEmployees({ dispatch }) {
resources.employee.get('/employees').then((resp)=>{
console.log(resp);
}, (error)=>{})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment