Skip to content

Commit aa7816b

Browse files
committed
clarified UpperCamelCase controller example
1 parent 44ff0f7 commit aa7816b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1657,9 +1657,9 @@ While this guide explains the *what*, *why* and *how*, I find it helpful to see
16571657
// avengers.controller.js
16581658
angular
16591659
.module
1660-
.controller('Avengers', Avengers);
1660+
.controller('HeroAvengers', HeroAvengers);
16611661

1662-
function Avengers(){ }
1662+
function HeroAvengers(){ }
16631663
```
16641664
16651665
- **Controller Name Suffix**: Append the controller name with the suffix `Controller` or with no suffix. Choose 1, not both.

0 commit comments

Comments
 (0)