Add Component to Template
To add a component to a template first in the parent component import the child component.
import { Hello } from './hello/hello'
@Component({
imports: [Hello]
})
Then in the parent template add the html selector of that component where you wish to display the content.
<app-hello></app-hello>