Skip to content

Commit bc09f96

Browse files
committed
Merge pull request johnpapa#556 from wesleycho/fix/controllerAs-granularity
Add granularity to controllerAs recommendation
2 parents 65a4483 + 9740aac commit bc09f96

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,18 @@ While this guide explains the *what*, *why* and *how*, I find it helpful to see
396396
}
397397
```
398398

399+
Note: When working with larger codebases, using a more descriptive name can help ease cognitive overhead & searchability. Avoid overly verbose names that are cumbersome to type.
400+
401+
```html
402+
<!-- avoid -->
403+
<input ng-model="customerProductItemVm.text">
404+
```
405+
406+
```html
407+
<!-- recommended -->
408+
<input ng-model="productVm.id">
409+
```
410+
399411
### Bindable Members Up Top
400412
###### [Style [Y033](#style-y033)]
401413

0 commit comments

Comments
 (0)