I have the following code that extends the BaseRequestOptions
class:
import { Injectable } from \'@angular/core\';
@Injectable()
export class AppReq
This is very similar to the question I answered here: Injected dependency is undefined when extending BaseRequestOptions
When defining your provider also define the dependencies needed, so the object in your providers definition would look like:
{
provide: RequestOptions,
useClass: AppRequestOptions,
deps: [ServiceA]
}