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:
committed by
Georgios Kalpakas
parent
762580ff34
commit
63b6d64a60
@@ -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: '='
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user