I tried to enter the service (TodoStore) in my component (TodoList), but could not with the decorators. The only way this works is with constructor parameter constructors
constructor(@Inject(TodoStore) store)
which is not valid ES7 as I know. I tried to put the injection in front of the class or before the constructor function, none of the methods worked with Webpack. My present most standard solution is
static get parameters() {
return [[TodoStore]];
}
My question is: is there a way with decorators in valid ES6 / ES7 for dependency injection?
source
share