Skip to content

Commit f455e2a

Browse files
committed
Merge pull request #179 from ebarbeito/fix-generated-config-file
fix(configuration): Update config.js references to current configuration...
2 parents b4223bf + ad75aa6 commit f455e2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/FAQ.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ To set up your environment specific constants, modify the respective targets of
110110
111111
name: 'config',
112112
113-
dest: '<%= yeoman.app %>/<%= yeoman.scripts %>/config.js'
113+
dest: '<%= yeoman.app %>/<%= yeoman.scripts %>/configuration.js'
114114
115115
},
116116
@@ -155,7 +155,7 @@ To set up your environment specific constants, modify the respective targets of
155155
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`.
156156

157157
##How is this used inside Angular?
158-
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.
158+
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.
159159

160160

161161

0 commit comments

Comments
 (0)