From the course: Learning the Angular CLI
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
The ng serve command - Angular Tutorial
From the course: Learning the Angular CLI
The ng serve command
- [instructor] The Angular CLI does a really great job tailoring to developer experience. Aside from scaffolding an entire application for you, the CLI makes it easy for you to serve your app for development. Let's continue with the sample that we previously generated. To see the available options for serving your application, you can use the dash hash help flag with ng serve. Lots of options here to use. Let's use the default options for now, ng serve. This command will build your app in memory and start a light development server for you at Port 4200. Let's go ahead and click on this link here. The really great feature here is that you can change any of your source files and the CLI will take care of automatically compiling your application and reload your browser. Let's make a change now to our app component. Heading over to App.component.html, let's go ahead and add a header. Let's give that a save, head over…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.