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

Issue if constructor param is array and not function #11

Open
MartinKei opened this issue Apr 11, 2016 · 1 comment
Open

Issue if constructor param is array and not function #11

MartinKei opened this issue Apr 11, 2016 · 1 comment

Comments

@MartinKei
Copy link

The documentation defines the register method of the $controllerProvider as method which accepts as constructor parameter either:

  • A function (which your code works)
  • An array containing the dependencies.

In my case the parameter looks like that:
['dep1', 'dep2', 'dep3', function() { }]

In that case the prototype-property is undefined.

@sashberd
Copy link

sashberd commented Dec 4, 2016

I have the same issue, when I minifing my code (https://github.com/christopherthielen/angular-360-no-scope/issues/15). Do you have solution for this bug?

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