Skip to content

Commit 29cb651

Browse files
committed
adds block about angular low-level functions
Update README.md Update README.md
1 parent 42185df commit 29cb651

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

a1/README.md

+11
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ While this guide explains the *what*, *why* and *how*, I find it helpful to see
5656
1. [Routing](#routing)
5757
1. [Task Automation](#task-automation)
5858
1. [Filters](#filters)
59+
1. [Low Level Functions](#low-level-functions)
5960
1. [Angular Docs](#angular-docs)
6061

6162
## Single Responsibility
@@ -3268,6 +3269,16 @@ Use [Gulp](http://gulpjs.com) or [Grunt](http://gruntjs.com) for creating automa
32683269
32693270
**[Back to top](#table-of-contents)**
32703271
3272+
## Low Level Functions
3273+
3274+
- Avoid using [Angular low-level functions](https://docs.angularjs.org/api/ng/function) such as `angular.copy()`, `angular.extend()` or even `angular.isUndefined()`.
3275+
3276+
*Why?*: You can replace a lot Angular's low-level functions with native ES2015+ functionality such as [`Object.assign()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) for copying objects and the [Spread Syntax](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_operator#Copy_an_array) for copying arrays _(ie. `[...arr1]`)_.
3277+
3278+
- Note: Use a utility library like [lodash](https://lodash.com/docs/4.15.0) if you need additional functionality that is not available natively in the newest versions of JavaScript.
3279+
3280+
**[Back to top](#table-of-contents)**
3281+
32713282
## Filters
32723283
32733284
###### [Style [Y420](#style-y420)]

0 commit comments

Comments
 (0)