Permalink
Browse files

step-29 - wire up thank-you view

  • Loading branch information...
1 parent 7956cfa commit 8e15f0cf386de3a426acdeee0ef01949a27a2862 @IgorMinar committed with vojtajina Nov 13, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 app/js/controllers/ThankYouController.js
  2. +1 −1 app/views/thank-you.html
@@ -1,5 +1,5 @@
'use strict';
-foodMeApp.controller('ThankYouController', function ThankYouController() {
-
+foodMeApp.controller('ThankYouController', function ThankYouController($scope, $routeParams) {
+ $scope.orderId = $routeParams.orderId;
});
@@ -3,5 +3,5 @@
<p>Our chefs are getting your food ready. It will be on its way shortly.</p>
- <p>Your order ID is 123456789.</p>
+ <p>Your order ID is {{orderId}}.</p>
</div>

1 comment on commit 8e15f0c

@chandanv03

Hello Igor Minar,

Being a newbie to angularjs , started learning it, i have downloaded your food master app
but im facing an issue
the issue is /api/restaurant/ is not found hence a 404 error is found
There is no api folder

can you please help me out fixing this issue .
Thanks
Chandan

Please sign in to comment.