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

What is the best practice for dependencies injection ? #8

Open
lleoooell opened this issue May 14, 2015 · 0 comments
Open

What is the best practice for dependencies injection ? #8

lleoooell opened this issue May 14, 2015 · 0 comments

Comments

@lleoooell
Copy link

Hi,

I want to install ngDialog via bower, what is the best practice for injecting it in production, i'm a little bit lost ?

it works on my local computer with a "node sever", but when i push on openshift, i have this error :

Error: [$injector:modulerr] Failed to instantiate module ngDialog due to:
Error: [$injector:nomod] Module 'ngDialog' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.

_i have register required css/js files in my assets.json
_i try by injecting 'ngDialog' in my default modules in init.js
_i try to inject it in my user module app.js ; MeanUser.angularDependencies(['ngDialog']);
_i try to inject it in my user module users.js : angular.module('mean.users', ['ngDialog']);
_and also in my controller...

I try all these at the same time, and also a few combinations. Most of are working locally. but none on openshift...
so, how you are handle your injections with this dist of meanio ?

Thanks for your help, your project rocks !

best,

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

1 participant