code for adding a component in angular code example Example: angular add component ng generate component [name]