This repository was archived by the owner on Feb 22, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +10
-8
lines changed Expand file tree Collapse file tree 5 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,9 @@ <h3>Recipe List</h3>
11
11
< ul >
12
12
< li class ="pointer "
13
13
ng-repeat ="recipe in ctrl.recipes "
14
- ng-click ="ctrl.selectRecipe(recipe) "> {{recipe.name}}</ li >
14
+ ng-click ="ctrl.selectRecipe(recipe) ">
15
+ {{recipe.name}}
16
+ </ li >
15
17
</ ul >
16
18
17
19
< h3 > Recipe Details</ h3 >
Original file line number Diff line number Diff line change @@ -15,12 +15,12 @@ import 'package:perf_api/perf_api.dart';
15
15
* The directive's public fields are available for data binding from the view.
16
16
* Similarly, the directive's public methods can be invoked from the view.
17
17
*/
18
- @NgDirective (
18
+ @NgController (
19
19
selector: '[recipe-book]' ,
20
20
publishAs: 'ctrl' )
21
21
class RecipeBookController {
22
22
23
- List recipes;
23
+ List < Recipe > recipes;
24
24
RecipeBookController () {
25
25
recipes = _loadData ();
26
26
}
@@ -54,7 +54,7 @@ class RecipeBookController {
54
54
new Recipe ('My So-So Dessert' ,'Desserts' ,
55
55
["Ingredient 1" , "Ingredient 2" ],
56
56
"Some Directions" , 3 ),
57
- ];
57
+ ];
58
58
}
59
59
}
60
60
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import 'package:perf_api/perf_api.dart';
6
6
7
7
part 'rating_component.dart' ;
8
8
9
- @NgDirective (
9
+ @NgController (
10
10
selector: '[recipe-book]' ,
11
11
publishAs: 'ctrl' )
12
12
class RecipeBookController {
@@ -46,7 +46,7 @@ class RecipeBookController {
46
46
new Recipe ('My So-So Dessert' ,'Desserts' ,
47
47
["Ingredient 1" , "Ingredient 2" ],
48
48
"Some Directions" , 3 ),
49
- ];
49
+ ];
50
50
}
51
51
}
52
52
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class CategoryFilter {
23
23
}
24
24
}
25
25
26
- @NgDirective (
26
+ @NgController (
27
27
selector: '[recipe-book]' ,
28
28
publishAs: 'ctrl' )
29
29
class RecipeBookController {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ part 'recipe_book_router.dart';
15
15
part 'view/view_recipe_component.dart' ;
16
16
part 'view/search_recipe_component.dart' ;
17
17
18
- @NgDirective (
18
+ @NgController (
19
19
selector: '[recipe-book]' ,
20
20
publishAs: 'ctrl' )
21
21
class RecipeBookController {
You can’t perform that action at this time.
0 commit comments