Skip to content

Rules no-services and di-order don't work in AngularJS components #555

@jbanulso

Description

@jbanulso

I use it to detect $http and $resource injections like this:

"angular/no-services": [2, ["http", "resource"]]

However, it doesn't detect those injections in my components. I've even tried to configure the rule like this, with no luck either way:

"angular/no-services": [2, ["http", "resource"], ["component"]]

// or

"angular/no-services": [2, {"component": ["http", "resource"]}]

EDIT: The rule di-order does not work either. This could potentially mean that other rules related to controllers might not work inside components.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions