For Angular 6.0-8.0 used with .NET Core 3.1, it was possible to inject the BASE_URL as string in constructor.
What is now the equivalent for the BASE_URL in Angular 18 + .NET 8? How should I approch this to get relevant path in local test and production ?
Old great and working way from the past below:
constructor(private http: HttpClient, @Inject('BASE_URL') private baseUrl: string) {
}
I do not want to add my value.. I would like to obtain value from the framework with relative path of my base url.