Skip to content

Commit 65a4483

Browse files
committed
removed confusing sentence
1 parent 2833130 commit 65a4483

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ While this guide explains the *what*, *why* and *how*, I find it helpful to see
329329

330330
*Why?*: `controllerAs` is syntactic sugar over `$scope`. You can still bind to the View and still access `$scope` methods.
331331

332-
*Why?*: Helps avoid the temptation of using `$scope` methods inside a controller when it may otherwise be better to avoid them or move the method to a factory, and reference them from the controller. Consider using `$scope` in a controller only when needed. For example when publishing and subscribing events using [`$emit`](https://docs.angularjs.org/api/ng/type/$rootScope.Scope#$emit), [`$broadcast`](https://docs.angularjs.org/api/ng/type/$rootScope.Scope#$broadcast), or [`$on`](https://docs.angularjs.org/api/ng/type/$rootScope.Scope#$on) consider moving these uses to a factory and invoke from the controller.
332+
*Why?*: Helps avoid the temptation of using `$scope` methods inside a controller when it may otherwise be better to avoid them or move the method to a factory, and reference them from the controller. Consider using `$scope` in a controller only when needed. For example when publishing and subscribing events using [`$emit`](https://docs.angularjs.org/api/ng/type/$rootScope.Scope#$emit), [`$broadcast`](https://docs.angularjs.org/api/ng/type/$rootScope.Scope#$broadcast), or [`$on`](https://docs.angularjs.org/api/ng/type/$rootScope.Scope#$on).
333333

334334
```javascript
335335
/* avoid */
@@ -2910,16 +2910,16 @@ Use file templates or snippets to help follow consistent styles and patterns. He
29102910
ngdirective // creates an Angular directive
29112911
ngfactory // creates an Angular factory
29122912
ngfilter // creates an Angular filter
2913-
ngservice // creates an Angular service
2914-
2913+
ngservice // creates an Angular service
2914+
29152915
// These are partial snippets intended to be chained
29162916
ngconfig // defines a configuration phase function
29172917
ngmodule // creates an Angular module getter
29182918
ngroute // defines an Angular ngRoute 'when' definition
2919-
ngrun // defines a run phase function
2919+
ngrun // defines a run phase function
29202920
ngstate // creates an Angular UI Router state definition
29212921
```
2922-
2922+
29232923
*Individual templates are also available for download within the [webstorm-angular-live-templates](assets/webstorm-angular-live-templates?raw=true) folder*
29242924
29252925
### Atom

0 commit comments

Comments
 (0)