In this tutorial im going to learn how to use component to another component.
First to create 1 component
ng generate component user-list
Second go to user-list.components.ts
![](https://www.devopsfreelancer.com/blog/wp-content/uploads/2023/06/image-53-1024x411.png)
And copy selector
app-user-list
Next whenever you want to show this just paste selector with opening closing tag
<app-user-list></app-user-list>
![](https://www.devopsfreelancer.com/blog/wp-content/uploads/2023/06/image-54-1024x484.png)
![](https://www.devopsfreelancer.com/blog/wp-content/uploads/2023/06/image-55-1024x270.png)
Thanks for reading.