anThe class 'LogregService' cannot be created via dependency injection, as it does no t have an Angular decorator. This will result in an error at runtime. code example
Example: how to inject service in component angular 6
you can inject service in components constructor:
constructor(public anyService: Service){}