Skip to content
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

Is there any predefined solution for a global configuration? #393

Open
julkue opened this issue Jun 19, 2015 · 2 comments
Open

Is there any predefined solution for a global configuration? #393

julkue opened this issue Jun 19, 2015 · 2 comments

Comments

@julkue
Copy link

julkue commented Jun 19, 2015

In previous projects without ngbp I've used requireJS which is similar to the modular architecture from AngularJS. I had a module "config" which I loaded as a dependency for each other module.
Is there any predefined way to handle a global configuration in ngbp or should I continue loading the configuration as a module?

Thank you!

@jeremy-albuixech
Copy link

I believe NGBP is just a starting point for your AngularJs apps, the main goal being to start working with a basis of good practices and design patterns.
It does not include any sort of configuration module, when I'm coding I tend to follow the Angular-styleguide recommendations (https://github.com/johnpapa/angular-styleguide#style-y128) which are, for configuration, to create a configuration file for each module like module1.config.js, placed side by side with the module entry point and which will hold all the constants used in the module.

@julkue
Copy link
Author

julkue commented Sep 16, 2015

Yea.. I found out that a few functions are missing in ngbp so I built my own boilerplate: http://github.com/julmot/jmBoilerplate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants