From c6016a6a85780ae68f71bbdd0eea391977225b7e Mon Sep 17 00:00:00 2001 From: victorbjelkholm Date: Mon, 14 Oct 2013 23:25:00 +0200 Subject: 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 --- docs/content/tutorial/step_04.ngdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/content/tutorial/step_04.ngdoc') diff --git a/docs/content/tutorial/step_04.ngdoc b/docs/content/tutorial/step_04.ngdoc index 5adf783f..df1b23ec 100644 --- a/docs/content/tutorial/step_04.ngdoc +++ b/docs/content/tutorial/step_04.ngdoc @@ -67,7 +67,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.',
--
cgit v1.2.3