Using the Angular CLI, generate a new component code example Example: angular generate component ng g component componentname