diff --git a/src/App.vue b/src/App.vue index 04c1eb8..fed02a5 100644 --- a/src/App.vue +++ b/src/App.vue @@ -17,12 +17,10 @@ - {{ tableData }} @@ -51,9 +49,10 @@ export default { tableData: undefined, }), mounted() { - this.$jquery.get('https://de1.api.radio-browser.info/json/stations/topclick?limit=10') - .function((data) => { - this.tableData = data + const vm = this + this.$jquery.getJSON('https://de1.api.radio-browser.info/json/stations/topclick?limit=10') + .done(function(data) { + vm.tableData = data }) }, } diff --git a/src/components/Table/Table.vue b/src/components/Table/Table.vue index bfe4f40..140eee4 100644 --- a/src/components/Table/Table.vue +++ b/src/components/Table/Table.vue @@ -9,14 +9,14 @@ - - + + + {{ stationData }}
- {{ stationName }} + {{ obj.name }} @@ -31,6 +31,7 @@
@@ -45,9 +46,9 @@ export default { ActionButton, }, props: { - stationName: { + stationData: { type: String, - required: true, + default: '', }, stationIsfav: { type: Boolean,