I tried to inject a service (TodoStore) into my component (TodoList) but failed with decorators. The only way it works is with constructor parameter decorators
constructor(@Inject(TodoStore) store)
which is not valid ES7 as i know. I tried to put the inject before the class or before constructor function, neither way worked with Webpack. My current most standard compliant solution is
static get parameters() {
return [[TodoStore]];
}
My question is there a way with decorators in valid ES6/ES7 to inject dependencies?