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(`, `); } }, template: `
{{artist.name}}
{{genres}}
{{artist.popularity}}
{{artist.follower_count}}
` } )