Skip to content

Commit

Permalink
step-18b - add fmDeliverTo directive
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorMinar authored and vojtajina committed Nov 27, 2012
1 parent c538a19 commit 9d501db
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
1 change: 1 addition & 0 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
<script src="js/controllers/MenuController.js"></script>
<script src="js/controllers/NavbarController.js"></script>
<script src="js/controllers/RestaurantsController.js"></script>
<script src="js/directives/fmDeliverTo.js"></script>
<script src="js/services/customer.js"></script>
<script src="js/services/localStorage.js"></script>
<script src="js/services/Restaurant.js"></script>
Expand Down
1 change: 0 additions & 1 deletion app/js/controllers/RestaurantsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ foodMeApp.controller('RestaurantsController',
}

$scope.restaurants = Restaurant.query();
$scope.customer = customer;

});
4 changes: 4 additions & 0 deletions app/js/directives/fmDeliverTo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<div class="breadcrumb fm-deliver-to">
Deliver to: {{customer.address}}
<a href="#/customer" class="pull-right">Change</a>
</div>
5 changes: 5 additions & 0 deletions app/js/directives/fmDeliverTo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict';

foodMeApp.directive('fmDeliverTo', function() {

});
5 changes: 1 addition & 4 deletions app/views/menu.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<div class="breadcrumb fm-deliver-to">
Deliver to: Placeholder street 23, Town of Placeholder, 98765
<a href="#/customer" class="pull-right">Change</a>
</div>
<fm-deliver-to></fm-deliver-to>


<div class="container fm-restaurant">
Expand Down
5 changes: 1 addition & 4 deletions app/views/restaurants.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<div class="breadcrumb fm-deliver-to">
Deliver to: {{customer.address}}
<a href="#/customer" class="pull-right">Change</a>
</div>
<fm-deliver-to></fm-deliver-to>


<div class="row-fluid">
Expand Down

0 comments on commit 9d501db

Please sign in to comment.