Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,10 @@ Configures Providers. For example, `$locationProvider.html5Mode(true);`.

### Constants

Although JavaScript does not yet support constants, we run our application through Traceur, which supports `const`.

The constant should be named in all uppercase if it's a global constant that will be used across many different functions.
A constant should be named in all uppercase if it's a global constant that will be used across many different functions.
For example, `export const API_URL = 'https://api.gocardless.com'`.

If the constant is defined within a single function, it should be in regular camelCase.
If a constant is defined within a single function, it should be in regular camelCase.

### Helpers

Expand Down