Vue.component( `artist`, { props: [ `artist` ], data: function () { return { popularity_tooltip: `Popularity`, followers_tooltip: `Followers`, }; }, computed: { genres: function () { let genres = []; for (var genre of this.artist.genres) { genres.push(genre.toTitleCase()); }; return genres.join(`, `); } }, methods: { show_popularity_modal: function () { this.$emit(`popularity_click`) } }, template: `
` } )