I am using ng-openapi-gen like this:
"scripts": {
[blabla],
"gen": "ng-openapi-gen --input http://localhost:8889/api-json --output ./src/app/modules/project/api"
}
The problem is that, when i want to inject the module like this:
ApiModule.forRoot({ rootUrl: 'http://localhost:8889' }),
This service ignore my rooUrl conf because of the providedIn: 'root', if i manually remove it, it works.
Maybe, i am doing it wrong, but... imho, ApiService shouldn't have the providedIn: 'root' param.
Hello,
I am using ng-openapi-gen like this: "scripts": { [blabla], "gen": "ng-openapi-gen --input http://localhost:8889/api-json --output ./src/app/modules/project/api" }
The code is generated, but i have this created:
{ @Injectable({ providedIn: 'root', }) export class ApiService extends BaseService }
The problem is that, when i want to inject the module like this: ApiModule.forRoot({ rootUrl: 'http://localhost:8889' }), This service ignore my rooUrl conf because of the providedIn: 'root', if i manually remove it, it works. Maybe, i am doing it wrong, but... imho, ApiService shouldn't have the providedIn: 'root' param.
Regards,