add new component with cli in angular code example Example: create angular component using cli ng generate component hero-detail