When running my angular project, I want to change the localhost url to projectname.
localhost:4200 to projectName:4200
How should I proceed?
When running my angular project, I want to change the localhost url to projectname.
localhost:4200 to projectName:4200
How should I proceed?
When you start the serve with ng serve, just add host:
ng serve --host="projectName".
Here are all parameters accepted by serve: Angular ng serve Docs
IMPORTANT
This implies that you cannot serve the app if you don't have any address with that name