use component in component angular code example Example: angular add component ng generate component [name]