OLD | NEW |
1 <polymer-element name="x-news" extends="ul"> | 1 <polymer-element name="x-news" extends="ul"> |
2 <template> | 2 <template> |
3 <style scoped> | 3 <style scoped> |
4 div.breaking { | 4 div.breaking { |
5 color: Red; | 5 color: Red; |
6 font-size: 20px; | 6 font-size: 20px; |
7 border: 1px dashed Purple; | 7 border: 1px dashed Purple; |
8 } | 8 } |
9 div.other { | 9 div.other { |
10 padding: 2px 0 0 0; | 10 padding: 2px 0 0 0; |
(...skipping 13 matching lines...) Expand all Loading... |
24 </ul> | 24 </ul> |
25 </div> | 25 </div> |
26 </template> | 26 </template> |
27 <script type="application/dart"> | 27 <script type="application/dart"> |
28 import 'package:polymer/polymer.dart'; | 28 import 'package:polymer/polymer.dart'; |
29 | 29 |
30 class XNews extends PolymerElement {} | 30 class XNews extends PolymerElement {} |
31 | 31 |
32 @initMethod | 32 @initMethod |
33 _init() { | 33 _init() { |
34 registerPolymerElement('x-news', () => new XNews()); | 34 Polymer.register('x-news', XNews); |
35 } | 35 } |
36 </script> | 36 </script> |
37 </polymer-element> | 37 </polymer-element> |
OLD | NEW |