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

Commit 63b6d64

Browse files
sercaneraslangkalpak
authored andcommitted
docs(guide/component): remove redundant empty controller from example
There is no need for empty controller functions on components, since this is the default. Closes #16003
1 parent 762580f commit 63b6d64

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

docs/content/guide/component.ngdoc

-6
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,8 @@ Components can be registered using the `.component()` method of an AngularJS mod
3939
});
4040
</file>
4141
<file name="heroDetail.js">
42-
43-
function HeroDetailController() {
44-
45-
}
46-
4742
angular.module('heroApp').component('heroDetail', {
4843
templateUrl: 'heroDetail.html',
49-
controller: HeroDetailController,
5044
bindings: {
5145
hero: '='
5246
}

0 commit comments

Comments
 (0)