Skip to content

Commit

Permalink
removed double "dotted" reason for controllerAs
Browse files Browse the repository at this point in the history
  • Loading branch information
johnpapa committed Jul 29, 2014
1 parent a7c44e0 commit 4940757
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,6 @@ Many of my styles have been from the many pair programming sessions [Ward Bell](

*Why?*: Helps avoid using `$parent` calls in Views with nested controllers.

*Why?*: It promotes the use of binding to a "dotted" object in the View (e.g. `customer.name` instead of `name`), which is more contextual, easier to read, and avoids any reference issues that may occur without "dotting".

```html
<!-- avoid -->
<div ng-controller="Customer">
Expand Down

0 comments on commit 4940757

Please sign in to comment.