Explorar el Código

Missing ... (spread operator) (#438)

add ... (spread operator) on map a getter to a different name section.
Phouvanh Korngchansavath hace 8 años
padre
commit
1fbf9cd432
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      docs/en/getters.md

+ 1 - 1
docs/en/getters.md

@@ -85,7 +85,7 @@ export default {
 If you want to map a getter to a different name, use an object:
 
 ``` js
-mapGetters({
+...mapGetters({
   // map this.doneCount to store.getters.doneTodosCount
   doneCount: 'doneTodosCount'
 })