I am building an application with Angular (6.0.7) and I am trying to create a service with the new:
6.0.7
@Injectable({ providedIn: \'root\' })
You can use something like -
[{ provide: InterfaceName, useClass: ClassName}]