aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/tutorial/step_02.ngdoc
diff options
context:
space:
mode:
authorvictorbjelkholm2013-10-14 23:25:00 +0200
committerPete Bacon Darwin2013-11-14 14:47:01 +0000
commitc6016a6a85780ae68f71bbdd0eea391977225b7e (patch)
treec18b70acd1955d2313a3ba73c8368c0dcb8bc1c2 /docs/content/tutorial/step_02.ngdoc
parent977e2f55de7075b7dbfbab37e40a632bbaf0252f (diff)
downloadangular.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_02.ngdoc')
-rw-r--r--docs/content/tutorial/step_02.ngdoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/content/tutorial/step_02.ngdoc b/docs/content/tutorial/step_02.ngdoc
index 20dd88a2..e8a894cb 100644
--- a/docs/content/tutorial/step_02.ngdoc
+++ b/docs/content/tutorial/step_02.ngdoc
@@ -81,7 +81,7 @@ __`app/js/controllers.js`:__
var phonecatApp = angular.module('phonecatApp', []);
-phonecatApp.controller('PhoneListCtrl', function PhoneListCtrl($scope) {
+phonecatApp.controller('PhoneListCtrl', function ($scope) {
$scope.phones = [
{'name': 'Nexus S',
'snippet': 'Fast just got faster with Nexus S.'},