Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1045)

Side by Side Diff: example/explainer/countcomponent5.html

Issue 11416259: fix #136, support watch exprs and two way bindings for component fields (Closed) Base URL: https://github.com/dart-lang/dart-web-components.git@master
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | example/todomvc/main.html » ('j') | lib/src/analyzer.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <head> 8 <head>
9 <meta charset="utf-8"> 9 <meta charset="utf-8">
10 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 10 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
(...skipping 11 matching lines...) Expand all
22 <script type="application/dart"> 22 <script type="application/dart">
23 import 'package:web_components/web_components.dart'; 23 import 'package:web_components/web_components.dart';
24 24
25 class CounterComponent extends WebComponent { 25 class CounterComponent extends WebComponent {
26 int count = 0; 26 int count = 0;
27 void increment() { count++; } 27 void increment() { count++; }
28 } 28 }
29 </script> 29 </script>
30 </element> 30 </element>
31 <div class="well"> 31 <div class="well">
32 <div is="x-click-counter" data-value="count: myNumber"></div> 32 <div is="x-click-counter" count="{{myNumber}}"></div>
33 <div is="x-click-counter" data-value="count: 5"></div> 33 <div is="x-click-counter" count="{{5}}"></div>
34 </div> 34 </div>
35 <script type="application/dart"> 35 <script type="application/dart">
36 int myNumber = 12; 36 int myNumber = 12;
37 main(){} 37 main(){}
38 </script> 38 </script>
39 </body> 39 </body>
40 </html> 40 </html>
OLDNEW
« no previous file with comments | « no previous file | example/todomvc/main.html » ('j') | lib/src/analyzer.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698