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

Side by Side Diff: third_party/pkg/angular/demo/todo/web/todo.dart

Issue 148453003: Updating Angular version (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 library todo; 1 library todo;
2 2
3 import 'package:angular/angular.dart'; 3 import 'package:angular/angular.dart';
4 4
5
5 class Item { 6 class Item {
6 String text; 7 String text;
7 bool done; 8 bool done;
8 9
9 Item([String this.text = '', bool this.done = false]); 10 Item([String this.text = '', bool this.done = false]);
10 11
11 bool get isEmpty => text.isEmpty; 12 bool get isEmpty => text.isEmpty;
12 13
13 clone() => new Item(text, done); 14 clone() => new Item(text, done);
14 15
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 } 85 }
85 86
86 String classFor(Item item) { 87 String classFor(Item item) {
87 return item.done ? 'done' : ''; 88 return item.done ? 'done' : '';
88 } 89 }
89 90
90 int remaining() { 91 int remaining() {
91 return items.where((item) => !item.done).length; 92 return items.where((item) => !item.done).length;
92 } 93 }
93 } 94 }
OLDNEW
« no previous file with comments | « third_party/pkg/angular/demo/todo/web/todo.css ('k') | third_party/pkg/angular/demo/web/book.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698