ng generate modal code example Example 1: angular cli generate component ng g c componentName Example 2: angular generat model ng generate class hero --type=model