Check out example codes for "angular cli generate new module". It will help you in understanding the concepts better.

Code Example 1

ng generate module module-name

Code Example 2

ng generate component hero-detail

Code Example 3

ng g c componentName

Learn ReactJs, React Native from akashmittal.com