diff options
| author | victorbjelkholm | 2013-10-14 23:25:00 +0200 | 
|---|---|---|
| committer | Pete Bacon Darwin | 2013-11-14 14:47:01 +0000 | 
| commit | c6016a6a85780ae68f71bbdd0eea391977225b7e (patch) | |
| tree | c18b70acd1955d2313a3ba73c8368c0dcb8bc1c2 /docs/content/tutorial/step_07.ngdoc | |
| parent | 977e2f55de7075b7dbfbab37e40a632bbaf0252f (diff) | |
| download | angular.js-c6016a6a85780ae68f71bbdd0eea391977225b7e.tar.bz2 | |
docs(tutorial): change controllers to not have name twice
While giving the controller function a name helps with debugging,
since otherwise your controller will be anonymous in stack traces,
passing the name to both the `controller()` method and as the function name
is confusing for beginners.
Closes #4415
Diffstat (limited to 'docs/content/tutorial/step_07.ngdoc')
| -rw-r--r-- | docs/content/tutorial/step_07.ngdoc | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/docs/content/tutorial/step_07.ngdoc b/docs/content/tutorial/step_07.ngdoc index 11ca36d2..110b383b 100644 --- a/docs/content/tutorial/step_07.ngdoc +++ b/docs/content/tutorial/step_07.ngdoc @@ -149,7 +149,7 @@ __`app/js/controllers.js`:__  var phonecatControllers = angular.module('phonecatControllers', []);  phonecatControllers.controller('PhoneListCtrl', ['$scope', '$http', -  function PhoneListCtrl($scope, $http) { +  function ($scope, $http) {      $http.get('phones/phones.json').success(function(data) {        $scope.phones = data;      }); | 
