OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <!-- | 2 <!-- |
3 Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3 Copyright (c) 2012, 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 lang="en"> | 7 <html lang="en"> |
8 <body> | 8 <body> |
9 <element name="x-component-with-event-listeners" extends="span" constructor="Com
ponentWithEventListeners"> | 9 <element name="x-component-with-event-listeners" extends="span" constructor="Com
ponentWithEventListeners"> |
10 <template> | 10 <template> |
11 <div on-click="listener()">0</div> | 11 <div on-click="listener()">0</div> |
12 <template if="notCond"> | 12 <template if="notCond"> |
13 <div on-click="listener()">1</div> | 13 <div on-click="listener()">1</div> |
14 </template> | 14 </template> |
15 </template> | 15 </template> |
16 <script type='application/dart'> | 16 <script type='application/dart'> |
17 import 'common.dart'; | 17 import 'common.dart'; |
18 import 'package:web_components/web_components.dart'; | 18 import 'package:web_ui/web_ui.dart'; |
19 class ComponentWithEventListeners extends WebComponent { | 19 class ComponentWithEventListeners extends WebComponent { |
20 void listener() {} | 20 void listener() {} |
21 } | 21 } |
22 </script> | 22 </script> |
23 </element> | 23 </element> |
24 </body> | 24 </body> |
25 </html> | 25 </html> |
OLD | NEW |