Understanding the Folder Structure
Learn about the structure of an Angular application.
Folder structure of an Angular application
The node_modules
directory
The node_modules
directory is primarily meant for build tools. It helps install all the libraries and packages found in the dependencies and dev dependencies in the package.json
file.
The src
directory
This directory contains all the folders required to build our application. This is where we implement the logic for our application that consists of generating components, services, routing, styling, interceptors, guards, and the like.
Package.json
This file lies at the root of an angular application. It helps store data about the libraries installed in the project and the specified version of the library.
Once a new library is added to the project, the name and version are added to the dependencies object inside the package.json file.
Get hands-on with 1400+ tech skills courses.