| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 This example is from | 3 This example is from |
| 4 https://github.com/dglazkov/Web-Components-Polyfill/blob/master/samples/news | 4 https://github.com/dglazkov/Web-Components-Polyfill/blob/master/samples/news |
| 5 --> | 5 --> |
| 6 <html> | 6 <html> |
| 7 <head> | 7 <head> |
| 8 <title>News Component</title> | 8 <title>News Component</title> |
| 9 </head> | 9 </head> |
| 10 <body> | 10 <body> |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 <content select=".breaking"></content> | 27 <content select=".breaking"></content> |
| 28 </ul> | 28 </ul> |
| 29 </div> | 29 </div> |
| 30 <div class="other"> | 30 <div class="other"> |
| 31 <h2>Other News</h2> | 31 <h2>Other News</h2> |
| 32 <ul> | 32 <ul> |
| 33 <content></content> | 33 <content></content> |
| 34 </ul> | 34 </ul> |
| 35 </div> | 35 </div> |
| 36 </template> | 36 </template> |
| 37 <script type="application/dart"> |
| 38 import 'package:polymer/polymer.dart'; |
| 39 |
| 40 class XNews extends PolymerElement {} |
| 41 |
| 42 @polymerInitMethod |
| 43 _init() { |
| 44 registerPolymerElement('x-news', () => new XNews()); |
| 45 } |
| 46 </script> |
| 37 </polymer-element> | 47 </polymer-element> |
| 38 </body> | 48 </body> |
| 39 </html> | 49 </html> |
| OLD | NEW |