diff --git a/docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc b/docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc index 5b0510c0..dd339b58 100644 --- a/docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc +++ b/docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc @@ -221,7 +221,7 @@ more information about scope inheritance.
Good {{timeOfDay}}, {{name}}!
-Good {{timeOfDay}}, {{name}}!
describe('state', function() {
- var mainScope, childScope, babyScope;
+ var mainScope, childScope, grandChildScope;
beforeEach(module('myApp'));
@@ -321,8 +321,8 @@ describe('state', function() {
$controller('MainCtrl', {$scope: mainScope});
childScope = mainScope.$new();
$controller('ChildCtrl', {$scope: childScope});
- babyScope = childScope.$new();
- $controller('BabyCtrl', {$scope: babyScope});
+ grandChildScope = childScope.$new();
+ $controller('GrandChildCtrl', {$scope: grandChildScope});
}));
it('should have over and selected', function() {
@@ -330,8 +330,8 @@ describe('state', function() {
expect(mainScope.name).toBe('Nikki');
expect(childScope.timeOfDay).toBe('morning');
expect(childScope.name).toBe('Mattie');
- expect(babyScope.timeOfDay).toBe('evening');
- expect(babyScope.name).toBe('Gingerbreak Baby');
+ expect(grandChildScope.timeOfDay).toBe('evening');
+ expect(grandChildScope.name).toBe('Gingerbreak Baby');
});
});