code.js 379 B

12345678910111213141516171819
  1. // Or use axios directly instead of this.$http.
  2. Vue.prototype.$http = axios;
  3. const app = new Vue({
  4. el: '#root',
  5. data: {
  6. skills: [],
  7. },
  8. mounted() {
  9. // Make an Ajax request to our server, on /skills.json
  10. this.$http.get('skills.json')
  11. .then(response => {
  12. console.log("Response", response);
  13. this.skills = response.data;
  14. });
  15. }
  16. });