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