aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/tutorial/step_08.ngdoc
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/tutorial/step_08.ngdoc')
-rw-r--r--docs/content/tutorial/step_08.ngdoc6
1 files changed, 3 insertions, 3 deletions
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`:__
<pre>
-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});
}));