Skip to content

Commit 3c8e224

Browse files
committed
docs(guide/component): fix $componentController usage
Fixes angular#14091
1 parent 2d6c218 commit 3c8e224

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/content/guide/component.ngdoc

+3-2
Original file line numberDiff line numberDiff line change
@@ -420,12 +420,13 @@ The examples use the [Jasmine](http://jasmine.github.io/) testing framework.
420420
**Controller Test:**
421421
```js
422422
describe('component: heroDetail', function() {
423-
var component, scope, hero;
423+
var component, scope, hero, $componentController;
424424

425425
beforeEach(module('simpleComponent'));
426426

427-
beforeEach(inject(function($rootScope, $componentController) {
427+
beforeEach(inject(function($rootScope, _$componentController_) {
428428
scope = $rootScope.$new();
429+
$componentController = _$componentController_;
429430
hero = {name: 'Wolverine'};
430431
}));
431432

0 commit comments

Comments
 (0)