diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/content/tutorial/step_11.ngdoc | 6 |
1 files changed, 4 insertions, 2 deletions
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]; }); |
