Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 500b0f6

Browse files
committed
docs(guide/expressions): include filters in one-time binding examples
Closes #8776
1 parent 40b2728 commit 500b0f6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/content/guide/expression.ngdoc

+4-5
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,10 @@ Here are three example cases.
316316
When interpolating text or attributes:
317317

318318
```html
319-
<div name="attr: {{::color}}">text: {{::name}}</div>
319+
<div name="attr: {{::color}}">text: {{::name | uppercase}}</div>
320320
```
321321

322-
When using a directive with bidirectional binding and the parameters will not change:
322+
When using a directive with bidirectional binding and parameters that will not change:
323323

324324
```js
325325
someModule.directive('someDirective', function() {
@@ -342,7 +342,6 @@ When using a directive that takes an expression:
342342

343343
```html
344344
<ul>
345-
<li ng-repeat="item in ::items">{{item.name}};</li>
345+
<li ng-repeat="item in ::items | orderBy:'name'">{{item.name}};</li>
346346
</ul>
347-
```
348-
347+
```

0 commit comments

Comments
 (0)