aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc
diff options
context:
space:
mode:
authorJeffrey Palmer2013-06-25 14:28:08 -0600
committerPete Bacon Darwin2013-06-25 23:54:17 +0100
commitf8109406002840ecb306966941ee240433b99223 (patch)
treedb675d69f22192a2ad99ee858f1fcdfe4c6806b8 /docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc
parent73f811203200ec96b7a396151327089c39fe37a3 (diff)
downloadangular.js-f8109406002840ecb306966941ee240433b99223.tar.bz2
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.
Diffstat (limited to 'docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc')
-rw-r--r--docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc2
1 files changed, 1 insertions, 1 deletions
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});
}));