CLI
Last updated
Was this helpful?
Last updated
Was this helpful?
[R]
a command line interface tool that can create a project, add files, and perform a variety of ongoing development tasks such as testing, bundling, and deployment.
Generate a new project and skeleton application
The ng serve command launches the server, watches your files, and rebuilds the app as you make changes to those files.
the --open (or just -o) option will automatically open your browser on .
There are several ways to provide the HeroService: in the HeroesComponent, in the AppComponent, in the AppModule. Each option has pros and cons.
--flat puts the file in src/app instead of its own folder. --module=app tells the CLI to register it in the imports array of the AppModule.