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
6. Create New Custom Component in Angular and add it into the App Module in component declarations.
📐Create a Component in Angular ng generate component module app
modules in angular | how to create component for module | Angular 13 tutorial #6
Angular Library: Learn How To Create And Use It In Your App