From f8109406002840ecb306966941ee240433b99223 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') diff --git a/docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc b/docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc index 2c82f949..c7fe6f79 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