diff --git a/source/guide/application.md b/source/guide/application.md index 6cf0417071..73b23f406e 100644 --- a/source/guide/application.md +++ b/source/guide/application.md @@ -59,7 +59,7 @@ All Vue instances can have their raw `$data` directly serialized with `JSON.stri ## Unit Testing -Anything compatible with a CommonJS-based build system works. A recommendation is using the [Karma](http://karma-runner.github.io/0.12/index.html) test runner together with is [CommonJS pre-processor](https://github.com/karma-runner/karma-commonjs) to test your code modually. +Anything compatible with a CommonJS-based build system works. A recommendation is using the [Karma](http://karma-runner.github.io/0.12/index.html) test runner together with its [CommonJS pre-processor](https://github.com/karma-runner/karma-commonjs) to test your code modularly. The best practice is to export raw options / functions inside modules. Consider this example: diff --git a/source/guide/directives.md b/source/guide/directives.md index 02248e56b3..a1fc907152 100644 --- a/source/guide/directives.md +++ b/source/guide/directives.md @@ -19,7 +19,7 @@ If you have not used AngularJS before, you probably don't know what a directive
``` -Here the prefix is `v` which is the default. The directive ID is `text` and the the expression is `message`. This directive instructs Vue.js to update the div's `textContent` whenever the `message` property on the Vue instance changes. +Here the prefix is `v` which is the default. The directive ID is `text` and the expression is `message`. This directive instructs Vue.js to update the div's `textContent` whenever the `message` property on the Vue instance changes. ## Inline Expressions @@ -92,4 +92,4 @@ Some directives don't even expect an attribute value - they simply do something A full list of empty directives can be found in the [API reference](/api/directives.html#Empty_Directives). -Next, let's talk about [Filters](/guide/filters.html). \ No newline at end of file +Next, let's talk about [Filters](/guide/filters.html). diff --git a/source/guide/index.md b/source/guide/index.md index e24f21ffb5..94b92ab384 100644 --- a/source/guide/index.md +++ b/source/guide/index.md @@ -63,7 +63,7 @@ Prefixed HTML attributes that tell Vue.js to do something about a DOM element. ``` -Here the div element has a `v-text` directive with the value `message`. What it does is telling Vue.js to keep the div's textContent in sync with the Vue instance's `message` property. +Here the div element has a `v-text` directive with the value `message`. This tells Vue.js to keep the div's textContent in sync with the Vue instance's `message` property. Directives can encapsulate arbitrary DOM manipulations. For example `v-attr` manipulates an element's attributes, `v-repeat` clones an element based on an Array, `v-on` attaches event listeners... we will cover them later.