Vue: how to Support more collection data types in v-for

Created on 27 Dec 2017  路  2Comments  路  Source: vuejs/vue

Version

2.5.13

Reproduction link

https://codesandbox.io/s/2yxxk9jkp

Steps to reproduce

for example

var map = new Map()
map.set('key1','Test1')
map.set('key2','Test2')
How do I write the v-for statement?

What is expected?

Test1
Test2

What is actually happening?

The result is empty

Most helpful comment

Map or Set is currently not supported, including reactivity and v-for. They will be supported in the new version coming early 2018.

All 2 comments

Map or Set is currently not supported, including reactivity and v-for. They will be supported in the new version coming early 2018.

@yyx990803 not seeing reactivity support for Map. Is this still coming in Vue 2?

I understand it should be possible in Vue 3 using value

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RashadSaleh picture RashadSaleh  路  51Comments

Akryum picture Akryum  路  34Comments

karevn picture karevn  路  36Comments

ecmel picture ecmel  路  52Comments

karevn picture karevn  路  42Comments