guzart / gulp-ng-constant

Gulp plugin for dynamic generation of angular constant modules.
MIT License
109 stars 26 forks source link

Add consumption example to documentation #23

Open rlugge opened 9 years ago

rlugge commented 9 years ago

This is an awesome and very, very, very useful bit of code that I'm glad to have.

Unfortunately, while the data is definitely getting exported to an AngularJS file, I have no clue how to actually consume it. I imagine someone who has already done a lot of work with Angular could get there quickly -- I am not that person. Not yet. A little bit more documentation would be... very helpful.

guzart commented 8 years ago

Hi @rlugge, take a look at this blog post.

http://mindthecode.com/how-to-use-environment-variables-in-your-angular-application/#using-the-config-file-in-your-app

It's about grunt, but after generating the file the section on how to use it in your app is the same. Hope this helps.