| OLD | NEW |
| 1 polymer_expressions | 1 polymer_expressions |
| 2 =================== | 2 =================== |
| 3 | 3 |
| 4 Polymer Expressions are an expressive syntax that can be used in templates in | 4 |
| 5 Dart. Polymer Expressions allow you to write complex binding expressions, with | 5 Polymer expressions are an expressive syntax that can be used in templates in |
| 6 Dart. |
| 7 |
| 8 Templates are one feature of Polymer.dart—a set of comprehensive UI |
| 9 and utility components for building web applications. |
| 10 This package is automatically included with the |
| 11 [polymer](https://pub.dartlang.org/packages/polymer) package |
| 12 because polymer expressions are often used in polymer Dart apps. |
| 13 The [Polymer.dart home page][home_page] |
| 14 contains a list of features, project status, |
| 15 installation instructions, instructions for upgrading from Web UI, |
| 16 and links to other documentation. |
| 17 |
| 18 |
| 19 ## Overview |
| 20 |
| 21 Polymer Expressions allow you to write complex binding expressions, with |
| 6 property access, function invocation, list/map indexing, and two-way filtering | 22 property access, function invocation, list/map indexing, and two-way filtering |
| 7 like: | 23 like: |
| 8 | 24 |
| 9 ```html | 25 ```html |
| 10 {{ person.title + " " + person.getFullName() | upppercase }} | 26 {{ person.title + " " + person.getFullName() | upppercase }} |
| 11 ``` | 27 ``` |
| 12 | 28 |
| 13 ## Overview | |
| 14 | |
| 15 ### Model-Driven Views (MDV) | 29 ### Model-Driven Views (MDV) |
| 16 [MDV][mdv] allows you to define templates directly in HTML that are rendered by
the | 30 [MDV][mdv] allows you to define templates directly in HTML that are rendered by
the |
| 17 browser into the DOM. Templates are bound to a data model, and changes to the | 31 browser into the DOM. Templates are bound to a data model, and changes to the |
| 18 data are automatically reflected in the DOM, and changes in HTML inputs are | 32 data are automatically reflected in the DOM, and changes in HTML inputs are |
| 19 assigned back into the model. The template and model are bound together via | 33 assigned back into the model. The template and model are bound together via |
| 20 binding expressions that are evaluated against the model. These binding | 34 binding expressions that are evaluated against the model. These binding |
| 21 expressions are placed in double-curly-braces, or "mustaches". | 35 expressions are placed in double-curly-braces, or "mustaches". |
| 22 | 36 |
| 23 Example: | 37 Example: |
| 24 | 38 |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 [web-ui@dartlang.org mailing list][web-ui-list]. | 287 [web-ui@dartlang.org mailing list][web-ui-list]. |
| 274 | 288 |
| 275 Please [file issues on Dart project page](http://dartbug.com/new) | 289 Please [file issues on Dart project page](http://dartbug.com/new) |
| 276 for any bugs you find or for feature requests. Make a note that it applies to | 290 for any bugs you find or for feature requests. Make a note that it applies to |
| 277 "package:polymer_expressions" | 291 "package:polymer_expressions" |
| 278 | 292 |
| 279 You can discuss Polymer Expressions on the | 293 You can discuss Polymer Expressions on the |
| 280 [web-ui@dartlang.org mailing list][web-ui-list]. | 294 [web-ui@dartlang.org mailing list][web-ui-list]. |
| 281 | 295 |
| 282 [web-ui-list]: https://groups.google.com/a/dartlang.org/forum/#!forum/web-ui | 296 [web-ui-list]: https://groups.google.com/a/dartlang.org/forum/#!forum/web-ui |
| OLD | NEW |