ng serve
Build and serve the application, rebuilding on file changes. More information: https://angular.dev/cli/serve.
- Start the application:
ng
- Start the application and open it in a browser:
ng
- Start the application on port
4201:
ng --port 4201
- Start the application and listen on all network interfaces:
ng --host
- Start the application using HTTPS:
ng --ssl
- Start the application with verbose logging:
ng --verbose
- Rebuild the application when files change:
ng --watch
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
