Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

chore(cleanup_todo): Clean-up the TODO sample a bit. #539

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions demo/todo/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ packages:
path: "../.."
relative: true
source: path
version: "0.9.4"
version: "0.9.7"
args:
description: args
source: hosted
Expand Down Expand Up @@ -50,11 +50,11 @@ packages:
route_hierarchical:
description: route_hierarchical
source: hosted
version: "0.4.10"
version: "0.4.13"
shadow_dom:
description: shadow_dom
source: hosted
version: "0.9.1"
version: "0.9.2"
source_maps:
description: source_maps
source: hosted
Expand All @@ -66,11 +66,11 @@ packages:
unittest:
description: unittest
source: hosted
version: "0.9.3"
version: "0.10.0"
unmodifiable_collection:
description: unmodifiable_collection
source: hosted
version: "0.9.2"
version: "0.9.2+1"
utf:
description: utf
source: hosted
Expand Down
11 changes: 5 additions & 6 deletions demo/todo/web/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,17 @@ import 'todo.dart';

import 'dart:html';

// Everything in the 'todo' library should be preserved by MirrorsUsed
// Everything in the 'todo' library should be preserved by MirrorsUsed.
@MirrorsUsed(
targets: const['todo'],
targets: const ['todo'],
override: '*')
import 'dart:mirrors';

main() {

print(window.location.search);
var module = new Module()
..type(TodoController)
..type(PlaybackHttpBackendConfig);
..type(TodoController)
..type(PlaybackHttpBackendConfig);

// If these is a query in the URL, use the server-backed
// TodoController. Otherwise, use the stored-data controller.
Expand All @@ -39,5 +38,5 @@ main() {
module.type(HttpBackend, implementedBy: PlaybackHttpBackend);
}

ngBootstrap(module:module);
ngBootstrap(module: module);
}
8 changes: 0 additions & 8 deletions demo/todo/web/todo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,6 @@ class TodoController {
serverController.init(this);
}

// workaround for https://github.com/angular/angular.dart/issues/37
dynamic operator [](String key) {
if (key == 'newItem') {
return newItem;
}
return null;
}

add() {
if (newItem.isEmpty) return;

Expand Down