0👍
I think this might work
computed: {
countries() {
let arr = [...new Set(this.hotels.map(h => h.country))]
return arr.sort()
}
Also if this does not work, then how does your [...new Set(this.hotels.map(h => h.country))]
looks like.
- [Vuejs]-AppEngine + GitHub integration
- [Vuejs]-How can I import a file vuejs component into index.html?
Source:stackexchange.com