From 8e15f0cf386de3a426acdeee0ef01949a27a2862 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 13 Nov 2012 02:18:09 +0100 Subject: [PATCH] step-29 - wire up thank-you view --- app/js/controllers/ThankYouController.js | 4 ++-- app/views/thank-you.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 @@

Thank you for your order!

Our chefs are getting your food ready. It will be on its way shortly.

-

Your order ID is 123456789.

+

Your order ID is {{orderId}}.