here is a way to create components inside a module in angular
1) first go inside module folder
2) run command: ng generate component componentName
Angular Module | Create and use module | Create component inside modules | Angular tutorial
7. Creating New Component with the angular CLI Command Generate Component & Nesting Components.
angular module and components | create angular module | create angular components | okay java
📐Create a Component in Angular ng generate component module app