Skip to content

Latest commit

 

History

History
71 lines (54 loc) · 1.9 KB

README.md

File metadata and controls

71 lines (54 loc) · 1.9 KB

Angualar Trainig

This project was generated with Angular CLI version 13.1.0.

Versions

  • Node version: v18.20.3 (Unsupported)
  • Angular: v13.1.3
  • Angular CLI: v13.1.4
  • NPM: v10.7.0

feature-based

src/
|-- app/
|   |-- core/
|   |   |-- services/
|   |   |-- guards/
|   |   |-- interceptors/
|   |-- shared/
|   |   |-- components/
|   |   |-- directives/
|   |   |-- pipes/
|   |-- features/
|   |   |-- feature1/
|   |   |   |-- components/
|   |   |   |-- services/
|   |   |   |-- feature1.module.ts
|   |   |   |-- feature2-routing.module.ts
|   |   |-- feature2/
|   |   |   |-- components/
|   |   |   |-- services/
|   |   |   |-- feature2.module.ts
|   |   |   |-- feature2-routing.module.ts
|   |-- models/
|   |-- app.component.ts
|   |-- app.module.ts
|   |-- app-routing.module.ts
|-- assets/
|-- environments/

Commands

Create a routing module

ng generate module features/feature1/feature1-routing --module=features/feature1/feature1

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.