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
This commit is contained in:
Sercan Eraslan
2017-05-21 19:00:51 +03:00
committed by Georgios Kalpakas
parent 762580ff34
commit 63b6d64a60
-6
View File
@@ -39,14 +39,8 @@ Components can be registered using the `.component()` method of an AngularJS mod
});
</file>
<file name="heroDetail.js">
function HeroDetailController() {
}
angular.module('heroApp').component('heroDetail', {
templateUrl: 'heroDetail.html',
controller: HeroDetailController,
bindings: {
hero: '='
}