Create module and component in angular by CLI February 29, 2020 To create a component as part of a module you should ng g module newModule to generate a module, cd newModule to change directory into the newModule folder ng g component newComponent to create a component as a child of the module. Read more