Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit 9d702c9

Browse files
committed
Update README.md
1 parent d5d3970 commit 9d702c9

File tree

1 file changed

+0
-40
lines changed

1 file changed

+0
-40
lines changed

README.md

-40
Original file line numberDiff line numberDiff line change
@@ -11,43 +11,3 @@ The project demonstrates ways to **leverage ui-router to the greatest of it's ab
1111
* [Slidedeck](http://slid.es/proloser/angularjs-orm) (OLD)
1212
* [Conference talk video](http://www.youtube.com/watch?v=Iw-3qgG_ipU) (OLD)
1313
[![NG-Conf 2014 Talk](http://i1.ytimg.com/vi/Iw-3qgG_ipU/0.jpg)](http://www.youtube.com/watch?v=Iw-3qgG_ipU)
14-
15-
ES6 Syntax
16-
------------
17-
18-
I use ES6 because it gives me easy-to-code classes and because the last line is always returned in arrow functions (which is great for promise chaining). You do not have to use ES6, and should not refactor into it 'just because'.
19-
20-
### How To Read
21-
22-
**Javascript:**
23-
```js
24-
function( x, y, z ){
25-
return z
26-
}
27-
28-
function x(z) {
29-
// constructor
30-
this.y = z;
31-
}
32-
x.prototype.method = function(){}
33-
```
34-
**ES6**
35-
```js
36-
// `this` is bound to OUTER scope
37-
( x, y, z ) => {
38-
this.whatever;
39-
}
40-
// single-line functions without brackets returns their expression
41-
( x ) => x.y
42-
// single-argument signatures don't need parenthesis
43-
response => response.data
44-
45-
46-
47-
class x {
48-
constructor(z) {
49-
this.y = z;
50-
}
51-
method(z) {}
52-
}
53-
```

0 commit comments

Comments
 (0)