Generating a feature

Generating a feature gives you a lot of files. Let's have a look at what the command looks like:

ng generate feature category

This generates the following files:

  • category.actions.ts
  • category.reducer.ts
  • category.reducer.spec.ts
  • category.effects.ts
  • category.effects.spec.ts

This again is a lot of files you don't have to write by hand.

Get Architecting Angular Applications with Redux, RxJS, and NgRx now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.