From 2407891ddf2d99b08106ceeaed7ae4f16ee0d760 Mon Sep 17 00:00:00 2001 From: ahliddin Date: Sat, 15 Feb 2014 22:22:15 +0100 Subject: docs(tutorial/step-11): add controller to correct object --- docs/content/tutorial/step_11.ngdoc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'docs/content') diff --git a/docs/content/tutorial/step_11.ngdoc b/docs/content/tutorial/step_11.ngdoc index a89b0a5b..dad92bb8 100644 --- a/docs/content/tutorial/step_11.ngdoc +++ b/docs/content/tutorial/step_11.ngdoc @@ -81,14 +81,16 @@ now to understand what the code in our controllers is doing. __`app/js/controllers.js`.__ ```js +var phonecatControllers = angular.module('phonecatControllers', []); + ... -phonecatApp.controller('PhoneListCtrl', ['$scope', 'Phone', function($scope, Phone) { +phonecatControllers.controller('PhoneListCtrl', ['$scope', 'Phone', function($scope, Phone) { $scope.phones = Phone.query(); $scope.orderProp = 'age'; }]); -phonecatApp.controller('PhoneDetailCtrl', ['$scope', '$routeParams', 'Phone', function($scope, $routeParams, Phone) { +phonecatControllers.controller('PhoneDetailCtrl', ['$scope', '$routeParams', 'Phone', function($scope, $routeParams, Phone) { $scope.phone = Phone.get({phoneId: $routeParams.phoneId}, function(phone) { $scope.mainImageUrl = phone.images[0]; }); -- cgit v1.2.3