Hi, I have got an autogenerated api from Swagger (editor.swagger), and it generates this constructor:
@Injectable() export class MyFirstApi { constructor(protected http: Http, @Optional() basePath: string) @Injectable() export class MySecondApi { constructor(protected http: Http, @Optional() basePath: string) I don't want to change the autogenerated code (as I want to keep auto generating it over time as the API evolves). How would I go about injecting an instance of MyFirstApi & MySecondApi into mycode whilst setting basePath only once (preferable once in the entire Angular 2 app for any components that want to inject the api in? Thanks for any help, I have read the docs but it is not clear to me. -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.