I am not fully grasping providers and can't figure this one out. I have a class with a constructor as so:
constructor(private http:Http, private url:string, private ext:string){}
Within the bootstrap how do I tell the DI to supply the Http but then use two variables: environment.url
and environment.ext
to supply the strings?
I know that I need to use providers but it wont accept the token string and I need to specify multiple times and only in the case of my class, not globally.
Note:
I know I can just import environment.url
and environment.ext
within my class but I want to have those two parameters set via constructor to minimize dependencies.