Skip to content

Rewording for clarity and a typo fix #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 26, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/guide/application.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
4 changes: 2 additions & 2 deletions source/guide/directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ If you have not used AngularJS before, you probably don't know what a directive
<div v-text="message"></div>
```

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

Expand Down Expand Up @@ -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).
Next, let's talk about [Filters](/guide/filters.html).
2 changes: 1 addition & 1 deletion source/guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Prefixed HTML attributes that tell Vue.js to do something about a DOM element.
<div v-text="message"></div>
```

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.

Expand Down