Skip to content

unknown provider  #181

@juunp

Description

@juunp

When trying to load a factory into a controller, i get an "unknown provider" error from angularJS.

I reproduced the error and the load structure from my project in this plnkr

Notes:

  • I do not load the app with

    deps: ['app']

because I need to load some js libraries before the app.

  • The module is already loaded when app is at "run" stage but without bServ factory which is defined in another file and there is no problem with aServ factory (defined in module file)
  • The file where is bServ is loaded (seen in network panel)

edit: I found a workaround.

I declare problematic services with:

angularAMD.factory('bServ', bServ);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions