- Create new project
ng new project-name --standalone=false (index
- To run project
ng serve --o
- To create a angular component use
ng g c component-name --standalone false --skip-tests (To create a specific module when there are multiple modules in the same project, use ng g c component-name --standalone false --skip-tests --module=./auth.module.ts. Otherwise, the import is skipped automatically with ng g c component-name --standalone false --skip-tests --skip-import)
- To create a module and routing (both in one command):
ng g m module-name --routing
- To create a service
ng generate service my-service --skip-tests