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') |
}; |
-} |
+} |