diff --git a/Chapter_03/web/index.html b/Chapter_03/web/index.html index 6ad2c48..d52f60d 100644 --- a/Chapter_03/web/index.html +++ b/Chapter_03/web/index.html @@ -17,8 +17,8 @@

Recipe List

-

Recipe Details

+

Recipe Details

Name: {{ctrl.selectedRecipe.name}}
Category: {{ctrl.selectedRecipe.category}}
Rating: diff --git a/Chapter_04/web/index.html b/Chapter_04/web/index.html index dcaf581..85775d2 100644 --- a/Chapter_04/web/index.html +++ b/Chapter_04/web/index.html @@ -19,8 +19,8 @@

Recipe List

-

Recipe Details

+

Recipe Details

Name: {{ctrl.selectedRecipe.name}}
Category: {{ctrl.selectedRecipe.category}}
Rating: diff --git a/Chapter_05/web/index.html b/Chapter_05/web/index.html index f84e131..ed339af 100644 --- a/Chapter_05/web/index.html +++ b/Chapter_05/web/index.html @@ -5,7 +5,7 @@ - +
{{ctrl.message}} diff --git a/Chapter_05/web/main.dart b/Chapter_05/web/main.dart index a220a66..208cb79 100644 --- a/Chapter_05/web/main.dart +++ b/Chapter_05/web/main.dart @@ -28,4 +28,3 @@ class MyAppModule extends Module { main() { ngBootstrap(module: new MyAppModule()); } - diff --git a/Chapter_06/lib/component/search_recipe_component.dart b/Chapter_06/lib/component/search_recipe_component.dart index 2231b2e..0fb4e1e 100644 --- a/Chapter_06/lib/component/search_recipe_component.dart +++ b/Chapter_06/lib/component/search_recipe_component.dart @@ -12,9 +12,9 @@ class SearchRecipeComponent { String nameFilterString = ""; @NgTwoWay('category-filter-map') - Map categoryFilterMap; + Map categoryFilterMap; - get categories { + List get categories { return categoryFilterMap.keys.toList(); } diff --git a/Chapter_06/lib/component/view_recipe_component.dart b/Chapter_06/lib/component/view_recipe_component.dart index e04d830..9b840da 100644 --- a/Chapter_06/lib/component/view_recipe_component.dart +++ b/Chapter_06/lib/component/view_recipe_component.dart @@ -15,7 +15,7 @@ class ViewRecipeComponent { String _recipeId; - get recipe { + Recipe get recipe { return recipeMap[_recipeId]; } diff --git a/Chapter_06/lib/component/view_recipe_component.html b/Chapter_06/lib/component/view_recipe_component.html index 1052f84..61e5f99 100644 --- a/Chapter_06/lib/component/view_recipe_component.html +++ b/Chapter_06/lib/component/view_recipe_component.html @@ -1,4 +1,4 @@ -
+