Angular › Build, Environments & Deployment
What are some popular hosting options for deploying an Angular app, and how do they differ?
IntermediateAnswer
Firebase Hosting and Netlify are popular choices that make deploying a built Angular app quick and simple, often connecting directly to your code repository and automatically deploying new changes. Traditional hosting, like a plain server, requires manually uploading the built dist folder yourself each time.
# A typical Firebase Hosting deployment
ng build --configuration production
firebase deploy
// Firebase automatically serves the contents of the dist folder to visitorsReal-world example A freelance developer deploys their client's Angular app to Firebase Hosting, getting a fast, globally distributed website live within minutes after running just two simple commands.