Evan You 11 роки тому
батько
коміт
ae90de0551
2 змінених файлів з 3 додано та 2 видалено
  1. 2 1
      README.md
  2. 1 1
      changes.md

+ 2 - 1
README.md

@@ -25,10 +25,11 @@ It's really really easy to get started. Seriously, it's so easy:
 
 ``` js
 var demo = new Vue({
+  el: '#demo',
   data: {
     message: 'Hello Vue.js!'
   }
-}).$mount('#demo')
+})
 ```
 
 To check out the live demo, guides and API reference, visit [vuejs.org](http://vuejs.org).

+ 1 - 1
changes.md

@@ -36,7 +36,7 @@ var vm = new Vue({ el: '#app', data: {a: 1} })
 
 In the previous version, nested Vue instances do not have prototypal inheritance of their data scope. Although you can access parent data properties in templates, you need to explicitly travel up the scope chain with `this.$parent` in JavaScript code or use `this.$get()` to get a property on the scope chain. The expression parser also needs to do a lot of dirty work to determine the correct scope the variables belong to.
 
-In the new model, we provide a scope inehritance system similar to Angular, in which you can directly access properties that exist on parent scopes. The major difference is that setting a primitive value property on a child scope WILL affect that on the parent scope! Because all data properties in Vue are getter/setters, so setting a property with the same key as parent on a child will not cause the child scope to create a new property shadowing the parent one, but rather it will just invoke the parent's setter function. See the example [here](http://jsfiddle.net/Px2n6/2/).
+In the new model, we provide a scope inheritance system similar to Angular, in which you can directly access properties that exist on parent scopes. The major difference is that setting a primitive value property on a child scope WILL affect that on the parent scope! Because all data properties in Vue are getter/setters, so setting a property with the same key as parent on a child will not cause the child scope to create a new property shadowing the parent one, but rather it will just invoke the parent's setter function. See the example [here](http://jsfiddle.net/Px2n6/2/).
 
 The result of this model is a much cleaner expression evaluation implementation. All expressions can simply be evaluated against the vm.