I have a Typescript class where all its constructor parameters are optional. How can I pass a service to it, as it acts as a required parameter ?
Current Situation :
constructor(label ? : String, location ? : any) {...}
Sort of what I am looking for :
constructor(private myService: MyService, label ? : String, location ? : any) {...}