Skip to content

Commit

Permalink
fix(configuration): Update config.js references to current configurat…
Browse files Browse the repository at this point in the history
…ion.js

update every reference to the old config.js with the new configuration.js
  • Loading branch information
ebarbeito committed Mar 19, 2015
1 parent a16b971 commit ad75aa6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ To set up your environment specific constants, modify the respective targets of
name: 'config',
dest: '<%= yeoman.app %>/<%= yeoman.scripts %>/config.js'
dest: '<%= yeoman.app %>/<%= yeoman.scripts %>/configuration.js'
},
Expand Down Expand Up @@ -155,7 +155,7 @@ To set up your environment specific constants, modify the respective targets of
Running `grunt serve` will cause the `development` target constants to be used. When you build your application for production using `grunt compress` or `grunt serve:compress`, the `production` constants will be used. Other targets, such as staging, can be added, but you will need to customize your Gruntfile accordingly. Note that if you change the `name` property of the task options, you will need to update your `app.js` module dependencies as well. If you want to compress and build and use `production` constants, you will need to first run `grunt compress` and then use ionic or cordova commands to build, for example: `ionic build ios`.

##How is this used inside Angular?
A `config.js` file is created by `grunt-ng-constant` depending on which task target is executed. This config file exposes a `config` module, that is listed as a dependency inside `app/scripts/app.js`. Out of the box, your constants will be namespaced under `ENV`, but this can be changed by modifying the `ngconstant` targets. It is important to note that whatever namespace value is chosen is what will need to be used for Dependency Injection inside your Angular functions.
A `configuration.js` file is created by `grunt-ng-constant` depending on which task target is executed. This config file exposes a `config` module, that is listed as a dependency inside `app/scripts/app.js`. Out of the box, your constants will be namespaced under `ENV`, but this can be changed by modifying the `ngconstant` targets. It is important to note that whatever namespace value is chosen is what will need to be used for Dependency Injection inside your Angular functions.



Expand Down
2 changes: 1 addition & 1 deletion templates/common/_gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ plugins
*.log
*.DS_Store

app/scripts/config.js
app/scripts/configuration.js
2 changes: 1 addition & 1 deletion templates/common/root/.jshintignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
app/scripts/config.js
app/scripts/configuration.js

0 comments on commit ad75aa6

Please sign in to comment.