This is just a get request and all the datas that you receive in response are coming from the backend and you cant change them without have a PUT request.
Solution to this is either let it statically or as above mentioned update them with a PUT/PATCH request.
Your question lacks details about where and how the domain is being used in the project.
If the domain name is used as a base URL for API calls or similar purposes and it’s hard-coded into your Angular application, and trust, you’d want to avoid that. Instead, you should store such values in environment variables. Angular has built-in support for environment-specific configurations through the environments files (environment.ts and environment.prod.ts).
If the question is about changing the domain in the browser’s address bar (which is not recommended and usually handled by server-side configurations or DNS settings), that would be a different topic and again, more details would be needed to provide an appropriate response.
3
Answers
This is just a get request and all the datas that you receive in response are coming from the backend and you cant change them without have a PUT request.
Solution to this is either let it statically or as above mentioned update them with a PUT/PATCH request.
The domain comes from backend but You can manipulate the domain value when printing in element.
Your question lacks details about where and how the domain is being used in the project.
If the domain name is used as a base URL for API calls or similar purposes and it’s hard-coded into your Angular application, and trust, you’d want to avoid that. Instead, you should store such values in environment variables. Angular has built-in support for environment-specific configurations through the environments files (environment.ts and environment.prod.ts).
If the question is about changing the domain in the browser’s address bar (which is not recommended and usually handled by server-side configurations or DNS settings), that would be a different topic and again, more details would be needed to provide an appropriate response.