Skip to content

Commit bb9052f

Browse files
committed
Update README.md
Fixed a typeo.
1 parent bd2b381 commit bb9052f

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
@@ -3053,9 +3053,9 @@ Use [Gulp](http://gulpjs.com) or [Grunt](http://gruntjs.com) for creating automa
30533053
*Why?*: Filters can easily be abused and negatively affect performance if not used wisely, for example when a filter hits a large and deep object graph.
30543054
30553055
###### [Style [Y421](#style-y421)]
3056-
- Filters should be defined at the module level, not in controllers, services or directives unless the filters is meant for a specific purpsoe and is not intended for use at a higher scope.
3056+
- Filters should be defined at the module level, not in controllers, services or directives unless the filters is meant for a specific purpose and is not intended for use at a higher scope.
30573057
3058-
*Why?*: Filters are meant to be pure functions - stateless and idempotent. When filters are defined in controllers, it increases the likely hood that application state will leak into the filter. Additionally, defining the filter at the module level allows for resuse. See the [angular docs](https://docs.angularjs.org/guide/filter#creating-custom-filters) for a more detailed explanation.
3058+
*Why?*: Filters are meant to be pure functions - stateless and idempotent. When filters are defined in controllers, it increases the likely hood that application state will leak into the filter. Additionally, defining the filter at the module level allows for reuse. See the [angular docs](https://docs.angularjs.org/guide/filter#creating-custom-filters) for a more detailed explanation.
30593059
30603060
**[Back to top](#table-of-contents)**
30613061

0 commit comments

Comments
 (0)