Basically by defining our services this way they will be tree shaken. Meaning if a consumer of this sdk doesn't include a service it won't be included in the bundle. In order to do this we'll need to add:
@Injectable({
providedIn: 'root'
})
export class OcMeService{
}
https://blog.ninja-squad.com/2018/05/04/what-is-new-angular-6/
Basically by defining our services this way they will be tree shaken. Meaning if a consumer of this sdk doesn't include a service it won't be included in the bundle. In order to do this we'll need to add:
above each service and then remove the explicit imports in api.module.ts: https://github.com/ordercloud-api/angular-client/blob/master/api.module.ts#L45-L79