Rangle.io : Angular Training
Search…
⌃K
Introduction
License
Why Angular?
The Architect's Guide to Angular
EcmaScript 6 and TypeScript Features
The JavaScript Toolchain
Bootstrapping an Angular Application
Components in Angular
Directives
Advanced Components
Observables
Angular Dependency Injection
Http
Change Detection
Zone.js
Advanced Angular
What is Immutability
Pipes
Forms
Modules
Routing
State Management
TDD Testing
Migrating AngularJS Projects to Angular
Project Setup
Angular CLI
Setup
Creating a New App
Serving the App
Creating Components
Creating Routes
Creating Other Things
Testing
Linting
CLI Command Overview
Adding Third Party Libraries
Integrating an Existing App
Accessibility in Angular
Internationalization in Angular
Glossary
Further Reading And Reference
Powered By GitBook

Serving the App

The CLI provides the ability to serve the app with live reload. To serve an application, simply run the command ng serve. This will compile the app and copy all of the application-specific files to the dist folder before serving.
By default, ng serve serves the application locally on port 4200 ( http://localhost:4200 ) but this can be changed by using a command line argument: ng serve --port=8080.
Previous
Creating a New App
Next
Creating Components
Last modified 3yr ago
Copy link