Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Provider does not warn if function arguments length exceeds nr of elements #3961

@tarjei

Description

@tarjei

OK, this may not be possible to fix, but here goes.

Let's say I got:

myApp.controller("someController", ["$http", "someservice", function($http, someservice, anotherservice) {

});

Then anotherservice will be undefined - and angular will not complain. It would be great if angular actually gave a warning that there is an unbound parameter in the function or something like that.

Is that possible?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions