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
-_Why_: Traceur is the transpiler used by SystemJS.
34
+
35
+
3.[lodash](https://github.com/lodash/lodash)
36
+
37
+
-_Why_: lodash is a utility library we use throughout our application. Our use of `_.extend` could be replaced by Angular’s built in method `angular.extend`.
-_Why_: ui-router replaces Angular’s ngRoute module, and is built around states instead of URL routes, enabling nested views. Our use of `$stateProvider` could be replaced by `$routeProvider`.
42
+
43
+
_Note_: We plan to write about the third-party tools we use at GoCardless. We will provide a link when it’s done.
44
+
19
45
## Directory and File Structure
20
46
21
47
We organise our code as follows:
@@ -97,7 +123,7 @@ Rules for using each of the core parts of AngularJS (routes, directives, control
97
123
98
124
#### Use resolvers to inject data.
99
125
100
-
_Why_: The page is rendered only when all data is available, which means you don't get any views being rendered without data.
126
+
_Why_: The page is rendered only when all data is available. This means views are only rendered once all the required data is available, and you avoid the user seeing any empty views whilst the data is loading.
101
127
102
128
```js
103
129
// Recommended
@@ -815,10 +841,10 @@ _Why_: You should `$scope.$apply()` as close to the asynchronous event binding a
815
841
816
842
We referred to lots of resources during the creation of this styleguide, including:
0 commit comments