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

Unified Diff: example/angular/routing/accessing_route_params_within_components/my_controller.dart

Issue 135183008: First group of routing examples (Closed) Base URL: https://github.com/dart-lang/dart_by_example.git@master
Patch Set: Tweaks 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 side-by-side diff with in-line comments
Download patch
Index: example/angular/routing/accessing_route_params_within_components/my_controller.dart
diff --git a/example/angular/basics/setting_element_classes_using_a_map/my_controller.dart b/example/angular/routing/accessing_route_params_within_components/my_controller.dart
similarity index 66%
copy from example/angular/basics/setting_element_classes_using_a_map/my_controller.dart
copy to example/angular/routing/accessing_route_params_within_components/my_controller.dart
index 3a71b67ee34a2d6f66d7dd7ae64d0bf669647141..38cf8ffc85c5f1224a020795024243031619bf08 100644
--- a/example/angular/basics/setting_element_classes_using_a_map/my_controller.dart
+++ b/example/angular/routing/accessing_route_params_within_components/my_controller.dart
@@ -5,15 +5,15 @@
library my_controller;
import 'package:angular/angular.dart';
+import 'book.dart' show Book;
@NgController(
selector: '[my-controller]',
publishAs: 'ctrl'
)
class MyController {
- Map<String, bool> classesMap = {
- 'bold': false,
- 'strike': false,
- 'red': false
+ Map<String, Book> bookMap = {
+ "1": new Book('War and Peace', 'A really long book'),
+ "2": new Book('The Old Man and the Sea', 'A really short book')
};
-}
+}

Powered by Google App Engine
This is Rietveld 408576698