If you want to serve your Angular application on a specific port other than the default (4200), which command should you use?

  • ng run --port 8080
  • ng serve --default-port 8080
  • ng serve --port 8080
  • ng start --port 8080
To serve your Angular application on a specific port other than the default (4200), you should use the ng serve --port 8080 command. This command starts the development server on port 8080, allowing you to access your application using a different port.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *