import { camelCasse } from 'lodash' document.addEventListener('alpine:init', () => { Alpine.data('workshopList', () => ({ ids: '3428008364', getModDescription() { console.log("Load IDs", this.ids); console.log(camelCasse("Load IDs")); let steamUrl = "https://steamcommunity.com/sharedfiles/filedetails/?id="; var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { //document.getElementById("demo").innerHTML = this.responseText; const $ = cheerio.load(this.responseText); //console.log($('title')); console.log(this.responseText); } }; xhttp.open("GET", steamUrl+this.ids, true); xhttp.send(); } })) }); document.addEventListener('alpine:initialized', () => { // });