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

Unified Diff: src/tests/site/code/webui/web/webui.dart

Issue 22528003: update examples on homepage (Closed) Base URL: https://github.com/dart-lang/dartlang.org.git@master
Patch Set: Gentler highlighting colors Created 7 years, 4 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
Index: src/tests/site/code/webui/web/webui.dart
diff --git a/src/tests/site/code/webui/web/webui.dart b/src/tests/site/code/webui/web/webui.dart
new file mode 100644
index 0000000000000000000000000000000000000000..7c4c3793bec8348abef8c8b61a6be2aae810427e
--- /dev/null
+++ b/src/tests/site/code/webui/web/webui.dart
@@ -0,0 +1,10 @@
+import 'package:web_ui/web_ui.dart';
+
+@observable String myString = '';
sethladd 2013/08/08 05:09:12 lets put this in a class, to get closer to polymer
Kathy Walrath 2013/08/08 17:09:39 Done.
+
+String get shouted => myString.toUpperCase();
+
+String get palindrome =>
+ myString + myString.split('').reversed.join();
+
+main() {}

Powered by Google App Engine
This is Rietveld 408576698