OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 |
| 4 <head> |
| 5 <title>property to attribute reflection with bind</title> |
| 6 <link rel="import" href="packages/polymer/polymer.html"> |
| 7 <script src="packages/unittest/test_controller.js"></script> |
| 8 </head> |
| 9 |
| 10 <body> |
| 11 <polymer-element name="my-child-element"> |
| 12 <template> |
| 13 <h1>Hello from the child</h1> |
| 14 <p>The camelCase is {{camelCase}}, attr {{attributes["camelCase"]}}</p> |
| 15 <p>The lowercase is {{lowercase}}, attr {{attributes["lowercase"]}}</p> |
| 16 </template> |
| 17 </polymer-element> |
| 18 |
| 19 <polymer-element name="my-element"> |
| 20 <template> |
| 21 <h1>Hello from the custom element. The volume is {{volume}}</h1> |
| 22 <p> |
| 23 <my-child-element id="child" |
| 24 camelCase="{{volume}}" lowercase="{{volume}}"></my-child-element> |
| 25 </p> |
| 26 </template> |
| 27 </polymer-element> |
| 28 |
| 29 <my-element></my-element> |
| 30 |
| 31 <script type="application/dart" src="prop_attr_bind_reflection_test.dart"> |
| 32 </script> |
| 33 </body> |
| 34 </html> |
OLD | NEW |