EmmanuelDemey / EmmanuelDemey/eslint-plugin-angular

Allow property based dependency specification in ng_di

Open
#143 2 comments 0 reactions 0 assignees View on GitHub
Improvement
Dominant language
JavaScript
Stars
620
Forks
127
PR merge metrics
No merged PRs in 30d

Description

As discussed in #138, ng_di currently doesn't allow property based dependency specifications like:

``` javascript
class MyController {

static get $inject() {
return ['DataStore'];
}

constructor(DataStore) {
this.dataStore = DataStore;
}

toggle() {
this.active = !this.active;
this.dataStore.addData('active', this.active);
}
}
```

Proposal: add possibility to configure `'ng_di': [2, 'property']`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.