You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -898,7 +898,7 @@ While this guide explains the *what*, *why* and *how*, I find it helpful to see
898
898
899
899
*Why?*: This makes it easier to test (mock or real) the data calls when testing a controller that uses a data service.
900
900
901
-
*Why?*: Data service implementation may have very specific code to handle the data repository. This may include headers, how to talk to the data, or other services such as $http. Separating the logic into a data service encapsulates this logic in a single place hiding the implementation from the outside consumers (perhaps a controller), also making it easier to change the implementation.
901
+
*Why?*: Data service implementation may have very specific code to handle the data repository. This may include headers, how to talk to the data, or other services such as `$http`. Separating the logic into a data service encapsulates this logic in a single place hiding the implementation from the outside consumers (perhaps a controller), also making it easier to change the implementation.
902
902
903
903
```javascript
904
904
/* recommended */
@@ -1010,7 +1010,7 @@ While this guide explains the *what*, *why* and *how*, I find it helpful to see
1010
1010
}
1011
1011
```
1012
1012
1013
-
**[Back to top](#table-of-contents)**
1013
+
**[Back to top](#table-of-contents)**
1014
1014
1015
1015
## Directives
1016
1016
### Limit 1 Per File
@@ -1022,7 +1022,7 @@ While this guide explains the *what*, *why* and *how*, I find it helpful to see
1022
1022
1023
1023
*Why?*: One directive per file is easy to maintain.
1024
1024
1025
-
> Note: "**Best Practice**: Directives should clean up after themselves. You can use `element.on('$destroy', ...)` or `scope.$on('$destroy', ...)` to run a clean-up function when the directive is removed" ... from the Angular documentation
1025
+
> Note: "**Best Practice**: Directives should clean up after themselves. You can use `element.on('$destroy', ...)` or `scope.$on('$destroy', ...)` to run a clean-up function when the directive is removed" ... from the Angular documentation.
1026
1026
1027
1027
```javascript
1028
1028
/* avoid */
@@ -1313,7 +1313,6 @@ While this guide explains the *what*, *why* and *how*, I find it helpful to see
1313
1313
**[Back to top](#table-of-contents)**
1314
1314
1315
1315
## Resolving Promises for a Controller
1316
-
1317
1316
### Controller Activation Promises
1318
1317
###### [Style [Y080](#style-y080)]
1319
1318
@@ -1418,8 +1417,8 @@ While this guide explains the *what*, *why* and *how*, I find it helpful to see
1418
1417
1419
1418
Avengers.$inject= ['moviesPrepService'];
1420
1419
functionAvengers(moviesPrepService) {
1421
-
var vm =this;
1422
-
vm.movies=moviesPrepService.movies;
1420
+
var vm =this;
1421
+
vm.movies=moviesPrepService.movies;
1423
1422
}
1424
1423
```
1425
1424
@@ -2188,6 +2187,7 @@ While this guide explains the *what*, *why* and *how*, I find it helpful to see
2188
2187
app.module.js
2189
2188
app.config.js
2190
2189
app.routes.js
2190
+
directives.js
2191
2191
controllers/
2192
2192
attendees.js
2193
2193
session-detail.js
@@ -2328,12 +2328,12 @@ While this guide explains the *what*, *why* and *how*, I find it helpful to see
0 commit comments