Upload files to 'js'

This commit is contained in:
Creuzdos 2020-03-08 15:34:45 +00:00
parent b02cdcefa7
commit 45e9700d1a

22
js/vueApp.js Normal file
View File

@ -0,0 +1,22 @@
new Vue(
{
el: "#app",
data: {
listeDeSons:null
},
created: function(){
this.loadData();
},
methods: {
loadData: function() {
var xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", '/Sounds', false ); // false for synchronous request
xmlHttp.send( null );
this.listeDeSons = JSON.parse(xmlHttp.responseText);
/*this.$http.get('/Sounds').then(function(response){
this.listeDeSons = response.body; */
}
}
}
);