mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-15 19:48:56 +00:00
38 lines
744 B
Plaintext
38 lines
744 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# ng serve
|
|
|
|
> Build and serve the application, rebuilding on file changes.
|
|
> More information: <https://angular.dev/cli/serve>.
|
|
|
|
- Start the application:
|
|
|
|
`ng {{[s|serve]}}`
|
|
|
|
- Start the application and open it in a browser:
|
|
|
|
`ng {{[s|serve]}} {{[-o|--open]}}`
|
|
|
|
- Start the application on port `4201`:
|
|
|
|
`ng {{[s|serve]}} --port 4201`
|
|
|
|
- Start the application and listen on all network interfaces:
|
|
|
|
`ng {{[s|serve]}} --host {{0.0.0.0}}`
|
|
|
|
- Start the application using HTTPS:
|
|
|
|
`ng {{[s|serve]}} --ssl`
|
|
|
|
- Start the application with verbose logging:
|
|
|
|
`ng {{[s|serve]}} --verbose`
|
|
|
|
- Rebuild the application when files change:
|
|
|
|
`ng {{[s|serve]}} --watch`
|