Angular
Angular CLI Basics - ng generate service

ng generate Conclusion

PRO
Outline

We're now done with the ng generate section of the course! We went over a lot of information in this section. We learned how to:

  • Generate code for our application using the ng generate command
  • How to pair modifiers — like module, component, guard, pipe, and service — with the generate command
  • How to alter the default behavior using flags

You should now be comfortable running this command with any of the modifiers listed above and the associated flags. Some of those flags were adding components, guards and pipes to specific modules; creating services in their own folder; and setting up routing for a module. If you have any questions, go back and watch the video on that section again or got check out the docs.