Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit f810940

Browse files
JeffreyPalmerpetebacondarwin
authored andcommitted
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.
1 parent 73f8112 commit f810940

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ describe('state', function() {
268268
var mainCtrl = $controller(MainCtrl, {$scope: mainScope});
269269
childScope = mainScope.$new();
270270
var childCtrl = $controller(ChildCtrl, {$scope: childScope});
271-
babyScope = childCtrl.$new();
271+
babyScope = childScope.$new();
272272
var babyCtrl = $controller(BabyCtrl, {$scope: babyScope});
273273
}));
274274

0 commit comments

Comments
 (0)