ng g component componentname //it will automatically create 4 files //componentname.html //componentname.scss //componentname.ts //componentname.spec.ts