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

Unified Diff: samples/third_party/todomvc/web/app.dart

Issue 60353013: Update TodoMVC based on https://github.com/polymer/todomvc (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merged Created 7 years, 1 month 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 | « samples/third_party/todomvc/test/utils.dart ('k') | samples/third_party/todomvc/web/app.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/third_party/todomvc/web/app.dart
diff --git a/samples/third_party/todomvc/web/app.dart b/samples/third_party/todomvc/web/app.dart
deleted file mode 100644
index 3c12a2b4ce640f362f3ed31fc177f814e7ebc046..0000000000000000000000000000000000000000
--- a/samples/third_party/todomvc/web/app.dart
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-library todomvc.web.app;
-
-import 'dart:html';
-import 'package:polymer/polymer.dart';
-import 'model.dart';
-
-@CustomTag('todo-app')
-class TodoApp extends PolymerElement {
- @observable AppModel app;
- bool get applyAuthorStyles => true;
-
- factory TodoApp() => new Element.tag('TodoApp');
-
- TodoApp.created() : super.created() {
- app = appModel;
- }
-
- void addTodo(Event e) {
- e.preventDefault(); // don't submit the form
- InputElement input = getShadowRoot('todo-app').querySelector('#new-todo');
- if (input.value == '') return;
- app.todos.add(new Todo(input.value));
- input.value = '';
- }
-
- void clear() => app.clearDone();
-}
« no previous file with comments | « samples/third_party/todomvc/test/utils.dart ('k') | samples/third_party/todomvc/web/app.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698