diff options
| author | Jeffrey Palmer | 2013-06-25 14:28:08 -0600 |
|---|---|---|
| committer | Pete Bacon Darwin | 2013-06-25 23:54:33 +0100 |
| commit | 192672a162c661bea120252a76645dd23b4f7df3 (patch) | |
| tree | a473b8cf14316efc2d8ee57e19982f5bb90133be /docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc | |
| parent | 7f4e658d3d6c0abd3af286d7a185bdb16878b84b (diff) | |
| download | angular.js-192672a162c661bea120252a76645dd23b4f7df3.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.ngdoc | 2 |
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 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}); })); |
