ng command to create new angular component code example Example: create angular component using cli ng generate component hero-detail