FILE STRUCTURE : Angular folder and file structure and there use

yotube
0

Root Folders




e2e/            :- Inside e2e/ live the end-to-end tests.

node_modules/   :- Node.js creates this folder and puts all third party modules listed in package.json inside of it.

.editorconfig   :- Simple configuration for your editor to make sure everyone that uses your project has the same basic configuration. Most editors support an .editorconfig file. See http://editorconfig.org for more information.

.gitignore      :- Git configuration to make sure autogenerated files are not committed to source control.

angular.json    :- Configuration for Angular CLI. In this file you can set several defaults and also configure what files are included when your project is built.

package.json    :- npm configuration listing the third party packages your project uses.

tsconfig.json   :- TypeScript compiler configuration for your IDE to pick up and give you helpful tooling.

tslint.json     :- Linting configuration for TSLint together with Codelyzer, used when running ng lint




SRC FOLDER


main.ts            :- The main entry point for your app. Compiles the application with the JIT compiler and bootstraps the application's root module (AppModule) to run in the browser. You can also use the AOT compiler without changing any code by appending the--aot flag to the ng build and ng serve commands.


polyfills.ts       :- Different browsers have different levels of support of the web standards. Polyfills help normalize those differences. You should be pretty safe with core-js and zone.js


environments/*     :- This folder contains one file for each of your destination environments, each exporting simple configuration variables to use in your application. The files are replaced on-the-fly when you build your app. You might use a different API endpoint for development than you do for production or maybe different analytics tokens. You might even use some mock services. Either way, the CLI has you covered.


tslint.json        :- Additional Linting configuration for TSLint


tsconfig           :- TypeScript compiler configuration for the Angular app


test.ts            :- This is the main entry point for your unit tests.


app/app.component  :- It is the root component 


app/app.module.ts  :- Defines AppModule, the root module that tells Angular how to assemble the application. 






Post a Comment

0Comments
Post a Comment (0)

#buttons=(Accept !) #days=(20)

Our website uses cookies to enhance your experience. Learn More
Accept !
To Top