I want to create several components in the same folder. Is there a way in Angular to do so using one command?
A pseudo-command:
ng g c First Component, Second Component, Third Component
I want to create several components in the same folder. Is there a way in Angular to do so using one command?
A pseudo-command:
ng g c First Component, Second Component, Third Component
ng generate
doesn't support generating multiple components (or any other schematics) at once. However, you can loop in your shell outside the Angular CLI; for example, in bash:
for COMPONENT in first second third; do ng g c "$COMPONENT"; done