Skip to content

Commit 192672a

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 7f4e658 commit 192672a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
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)