fixed error

This commit is contained in:
Devin Smith 2014-11-22 12:33:12 -08:00
parent 4804c0e414
commit ad04b51a51

View File

@ -33,9 +33,9 @@ NGApp.controller('OrdersCtrl', function ($scope, OrderService, ViewListService)
});
});
NGApp.controller('OrderCtrl', function ($scope, $routeParams, $interval, OrderService) {
NGApp.controller('OrderCtrl', function ($scope, $rootScope, $routeParams, $interval, OrderService) {
OrderService.get($routeParams.id, function(d) {
$rootScope.title = 'Order #' + order.id_order;
$rootScope.title = 'Order #' + d.id_order;
$scope.order = d;
$scope.ready = true;
});