Skip to content

What is the best practice for dependencies injection ? #8

@lleoooell

Description

@lleoooell

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions