Angular 4 directive error: Can't resolve all parameters for directive
private items
is missing a type parameter. Angular can't create component instances if it can't resolve all parameters to providers.
Resolving to providers only works with parameter types and @Inject(...)
annotations.
If you don't want items
to be injected, remove the parameter. There is no situation where you would need to create a component instance yourself to pass the parameter explicitely.