Skip to content
Permalink
Browse files

docs(guide/Expressions): fix grammar, flow and punctuation

Closes #10384
  • Loading branch information
brianjscoles authored and pkozlowski-opensource committed Dec 9, 2014
1 parent d8e3707 commit a8089166f512e5accb7bdeb55524e56fa617fc1d
Showing with 6 additions and 4 deletions.
  1. +6 −4 docs/content/guide/expression.ngdoc
@@ -298,14 +298,16 @@ then the expression is not fulfilled and will remain watched.

### How to benefit from one-time binding

When interpolating text or attributes. If the expression, once set, will not change
then it is a candidate for one-time expression.
If the expression will not change once set, it is a candidate for one-time binding.
Here are three example cases.

When interpolating text or attributes:

```html
<div name="attr: {{::color}}">text: {{::name}}</div>
```

When using a directive with bidirectional binding and the parameters will not change
When using a directive with bidirectional binding and the parameters will not change:

```js
someModule.directive('someDirective', function() {
@@ -324,7 +326,7 @@ someModule.directive('someDirective', function() {
```


When using a directive that takes an expression
When using a directive that takes an expression:

```html
<ul>

0 comments on commit a808916

Please sign in to comment.
You can’t perform that action at this time.