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

Commit 29355fd

Browse files
committed
finish hooking all the other views up
1 parent 6b003a9 commit 29355fd

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

Chapter_05/add.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
<div>
2-
Add recipe
1+
<div ng-bind-route="add">
2+
<h3>Add recipe</h3>
3+
Now it's your turn. Write some code to add a new recipe
34
</div>

Chapter_05/edit.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
<div ng-bind-route="edit">
2-
Edit recipe
1+
<div ng-bind-route="recipe">
2+
<h3>Edit recipe</h3>
3+
Now it's your turn. Write some code to edit the recipe
34
</div>

Chapter_05/search_recipe_component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
ng-model="ctrl.categoryFilterMap[category]">{{category}}
1313
</span>
1414
</div>
15-
<input type="button" value="clear filters" ng-click="ctrl.clearFilters()">
15+
<input type="button" value="Clear Filters" ng-click="ctrl.clearFilters()">
1616
</div>

Chapter_05/view_recipe_component.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<div id="recipe-details">
22
<h3>Recipe Details</h3>
3-
3+
<a class="extra-space" href="#/recipe/{{ctrl.recipe.id}}/edit">
4+
<input type="button" value="Edit Recipe"></a>
5+
46
<div ng-if="ctrl.recipe != null">
57
<div><strong>Name: </strong>{{ctrl.recipe.name}}</div>
68
<div><strong>Category: </strong>{{ctrl.recipe.category}}</div>

0 commit comments

Comments
 (0)