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

Commit a7244fd

Browse files
ptgamrgkalpak
authored andcommitted
docs(guide/component): fix $componentController usage
Fixes #14091 Closes #14092
1 parent 565391d commit a7244fd

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
@@ -427,12 +427,13 @@ The examples use the [Jasmine](http://jasmine.github.io/) testing framework.
427427
**Controller Test:**
428428
```js
429429
describe('component: heroDetail', function() {
430-
var component, scope, hero;
430+
var component, scope, hero, $componentController;
431431

432432
beforeEach(module('simpleComponent'));
433433

434-
beforeEach(inject(function($rootScope, $componentController) {
434+
beforeEach(inject(function($rootScope, _$componentController_) {
435435
scope = $rootScope.$new();
436+
$componentController = _$componentController_;
436437
hero = {name: 'Wolverine'};
437438
}));
438439

0 commit comments

Comments
 (0)