Skip to content

Minor correction / modernization #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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