Explorar el Código

fix two way binding with paths (fix #972)

Evan You hace 11 años
padre
commit
60fd14e6d1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/directives/prop.js

+ 1 - 1
src/directives/prop.js

@@ -67,7 +67,7 @@ module.exports = {
           child,
           childKey,
           withLock(function (val) {
-            parent[parentKey] = val
+            parent.$set(parentKey, val)
           })
         )
       })