Open vmasek opened 3 years ago
Something like this could do
export class ApiClientModule { constructor(@Optional() http: HttpClient) { if (!http) { throw new Error('You need to import the HttpClientModule in your main module (usually AppModule).'); } } }
Something like this could do