You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to read config variable from that I defined in project config but browser complains about mot finding the config file.
In the project.config.ts :
import {BACKEND_BASE_URL} from '../../../tools/config'; // Yes, it is a valid pass
...
return this.http.post(BACKEND_BASE_URL + '/api/login', body, options).toPromise()
...
The browser tries to pull it as http://localhost:3000/tools/config.js and of course failing with 404.
Is it even supported?
The text was updated successfully, but these errors were encountered:
This way the value of the constant BACKEND_BASE_URL, which is defined in project.config.ts will be interpolated within the rest of the code inside src/config.ts.
Hi all,
I am trying to read config variable from that I defined in project config but browser complains about mot finding the config file.
In the project.config.ts :
And in one of my service classes I have:
The browser tries to pull it as
http://localhost:3000/tools/config.js
and of course failing with 404.Is it even supported?
The text was updated successfully, but these errors were encountered: