From 0f7237d764f37ab9916fc9b8ecb7d8cd5b6adf98 Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Thu, 3 Oct 2013 11:58:47 +0100 Subject: docs(tutorial): improve wording and consistency --- docs/content/tutorial/step_04.ngdoc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (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 72ac70d5..8cf429e1 100644 --- a/docs/content/tutorial/step_04.ngdoc +++ b/docs/content/tutorial/step_04.ngdoc @@ -65,9 +65,7 @@ necessary! __`app/js/controllers.js`:__
-var myApp = angular.module('myApp',[]);
-
-myApp.controller('PhoneListCtrl', ['$scope', function($scope) {
+function PhoneListCtrl($scope) {
   $scope.phones = [
     {"name": "Nexus S",
      "snippet": "Fast just got faster with Nexus S.",
@@ -81,7 +79,11 @@ myApp.controller('PhoneListCtrl', ['$scope', function($scope) {
   ];
 
   $scope.orderProp = 'age';
-}]);
+}
+
+var phonecatApp = angular.module('phonecatApp',[]);
+phonecatApp.controller('PhoneListCtrl', PhoneListCtrl);
+
 
* We modified the `phones` model - the array of phones - and added an `age` property to each phone -- cgit v1.2.3