From 192672a162c661bea120252a76645dd23b4f7df3 Mon Sep 17 00:00:00 2001 From: Jeffrey Palmer Date: Tue, 25 Jun 2013 14:28:08 -0600 Subject: docs(guide/controller): fix an error in the scope inheritance example The chained scope creation example at the bottom of this document was using the childCtrl to create the babyScope, instead of the childScope. --- docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/content/guide') diff --git a/docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc b/docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc index e3a570d4..c69ea915 100644 --- a/docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc +++ b/docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc @@ -268,7 +268,7 @@ describe('state', function() { var mainCtrl = $controller(MainCtrl, {$scope: mainScope}); childScope = mainScope.$new(); var childCtrl = $controller(ChildCtrl, {$scope: childScope}); - babyScope = childCtrl.$new(); + babyScope = childScope.$new(); var babyCtrl = $controller(BabyCtrl, {$scope: babyScope}); })); -- cgit v1.2.3