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_08.ngdoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/content/tutorial/step_08.ngdoc') diff --git a/docs/content/tutorial/step_08.ngdoc b/docs/content/tutorial/step_08.ngdoc index 503b4347..5075be98 100644 --- a/docs/content/tutorial/step_08.ngdoc +++ b/docs/content/tutorial/step_08.ngdoc @@ -61,8 +61,8 @@ the same way as the phone list controller. __`app/js/controllers.js`:__
-var myApp = angular.module('myApp',[]);
-myApp.controller('PhoneDetailCtrl', ['$scope', '$routeParams', '$http', function($scope, $routeParams, $http) {
+var phonecatApp = angular.module('phonecatApp',[]);
+phonecatApp.controller('PhoneDetailCtrl', ['$scope', '$routeParams', '$http', function($scope, $routeParams, $http) {
$http.get('phones/' + $routeParams.phoneId + '.json').success(function(data) {
$scope.phone = data;
});
@@ -132,7 +132,7 @@ __`test/unit/controllersSpec.js`:__
$routeParams.phoneId = 'xyz';
scope = $rootScope.$new();
- ctrl = $controller(PhoneDetailCtrl, {$scope: scope});
+ ctrl = $controller('PhoneDetailCtrl', {$scope: scope});
}));
--
cgit v1.2.3