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.
This commit is contained in:
Jeffrey Palmer 2013-06-25 14:28:08 -06:00 committed by Pete Bacon Darwin
parent 73f8112032
commit f810940600

View file

@ -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});
}));