diff --git a/app/js/controllers/ThankYouController.js b/app/js/controllers/ThankYouController.js index 0d7808e5..c299004d 100644 --- a/app/js/controllers/ThankYouController.js +++ b/app/js/controllers/ThankYouController.js @@ -1,5 +1,5 @@ 'use strict'; -foodMeApp.controller('ThankYouController', function ThankYouController() { - +foodMeApp.controller('ThankYouController', function ThankYouController($scope, $routeParams) { + $scope.orderId = $routeParams.orderId; }); diff --git a/app/views/thank-you.html b/app/views/thank-you.html index e623a6c1..f77ecd4c 100644 --- a/app/views/thank-you.html +++ b/app/views/thank-you.html @@ -3,5 +3,5 @@
Our chefs are getting your food ready. It will be on its way shortly.
-Your order ID is 123456789.
+Your order ID is {{orderId}}.