Deploying an Angular Application

Learn how to deploy an Angular application on a web server.

If we already have a web server that we want to use for our Angular application, we can copy the contents of the output folder to a path in that server. If we want to deploy it in another folder other than the root, we can change the href attribute of the <base> tag in the main HTML file in the following ways:

  • Pass the --base-href option in the ng build command (for a local machine):

Get hands-on with 1400+ tech skills courses.