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

Unified Diff: pkg/polymer/lib/auto_binding.dart

Issue 568463002: fix auto-binding-dart example (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix auto-binding-dart example so it works in built output Created 6 years, 3 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/lib/auto_binding.dart
diff --git a/pkg/polymer/lib/auto_binding.dart b/pkg/polymer/lib/auto_binding.dart
index 1e1d0b69c14029d6939e92613a52c8c8c9dadfd5..ab12bca7833420859a4a8c4486e6244670872b8c 100644
--- a/pkg/polymer/lib/auto_binding.dart
+++ b/pkg/polymer/lib/auto_binding.dart
@@ -20,7 +20,7 @@ import 'package:template_binding/template_binding.dart';
*
* Example:
*
- * <template is="auto-binding-dart">
+ * <template id="my-template" is="auto-binding-dart">
* <div>Say something: <input value="{{value}}"></div>
* <div>You said: {{value}}</div>
* <button on-tap="{{buttonTap}}">Tap me!</button>
@@ -30,7 +30,7 @@ import 'package:template_binding/template_binding.dart';
* import 'package:polymer/polymer.dart';
*
* main() {
- * var template = document.querySelector('template');
+ * var template = document.querySelector('#my-template');
Siggi Cherem (dart-lang) 2014/09/11 15:44:22 might be worth mentioning in the example that usin
* template.model = new MyModel();
* }
*
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698