Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 3 Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 4 for details. All rights reserved. Use of this source code is governed by a | 4 for details. All rights reserved. Use of this source code is governed by a |
| 5 BSD-style license that can be found in the LICENSE file. | 5 BSD-style license that can be found in the LICENSE file. |
| 6 --> | 6 --> |
| 7 <html> | 7 <html> |
| 8 <head> | 8 <head> |
| 9 <script src="packages/web_components/webcomponents.min.js"></script> | 9 <script src="packages/web_components/webcomponents.min.js"></script> |
| 10 <link rel="x-dart-test" href="polymer_mixin_test.dart"> | 10 <link rel="x-dart-test" href="polymer_mixin_test.dart"> |
| 11 <!--<script type="application/dart" src="polymer_mixin_test.dart"></script>--> | 11 <!--<script type="application/dart" src="polymer_mixin_test.dart"></script>--> |
| 12 <script src="packages/test/dart.js"></script></head> | 12 <script src="packages/test/dart.js"></script></head> |
| 13 <body> | 13 <body> |
| 14 <dom-module id="test-element"> | 14 <dom-module id="test-element"> |
| 15 <template> | 15 <template> |
| 16 <div id="parent"> | 16 <div id="parent"> |
| 17 parent | 17 parent |
| 18 <div id="child"> | 18 <div id="child"> |
| 19 child | 19 child |
| 20 </div> | 20 </div> |
| 21 </div> | 21 </div> |
| 22 <!-- Makes sure that if a list is in a binding the updates don't happen tw ice --> | |
|
Siggi Cherem (dart-lang)
2015/09/17 21:11:59
is this a pitfall also in polymer.js or just for u
jakemac
2015/09/23 17:37:08
This is only for Polymer Dart elements. This is ju
Siggi Cherem (dart-lang)
2015/09/24 20:23:07
Oh - ok, maybe then change:
Makes sure that ...
jakemac
2015/09/25 15:43:11
Done.
| |
| 23 <sub-element id="sub" my-ints="{{myInts}}" my-map="{{myMap}}" | |
| 24 my-model="{{myModel}}"></sub-element> | |
| 25 </template> | |
| 26 </dom-module> | |
| 27 | |
| 28 <dom-module id="sub-element"> | |
| 29 <template> | |
| 30 <span id="modelValue">{{myModel.value}}</span> | |
| 22 </template> | 31 </template> |
| 23 </dom-module> | 32 </dom-module> |
| 24 </body> | 33 </body> |
| 25 </html> | 34 </html> |
| OLD | NEW |