Structure of Angular 2 project
Posted: November 24, 2021. | By: Admin
The root folder
The src/
folder is just one of the items inside the project's root folder. Other files help you build, test, maintain, document, and deploy the app. These files go in the root folder next to src/
.
my-app(root folder)
- app.e2e-spec.ts
- app.po.ts
- tsconfig.e2e.json
- node_modules/...
- src/...
- .angular-cli.json
- .editorconfig
- .gitignore
- karma.conf.js
- package.json
- protractor.conf.js
- README.md
- tsconfig.json
- tslint.json
Src Structure
Your app lives in the src
folder. All Angular components, templates, styles, images, and anything else your app needs go here. Any files outside of this folder are meant to support building your app.
src(folder)
- app.component.css
- app.component.html
- app.component.spec.ts
- app.component.ts
- app.module.ts
- .gitkeep
- environment.prod.ts
- environment.ts
- favicon.ico
- index.html
- main.ts
- polyfills.ts
- styles.css
- test.ts
- tsconfig.app.json
- tsconfig.spec.json