create component in angular 12 code example Example 1: angular new component ng g c componentName Example 2: angular generate component ng g component componentname