- · Accept the incoming request
- · Handles the incoming request and provide the response.
Advantages of CQRS
- Independent scaling
- Optimized data transfer objects
- Provides separation of concern
- High scalability
Run the command npm install
in the terminal. This command will read the package.json
file and install all the required dependencies into a node_modules
folder in your project.
c:\users\ng --version
c:\users>npm install @angular/cli
npm install -g @angular/cli@1.0.0 //npm install @angular/cli@latest //npm install -g @angular/cli@latest
ng serve -- open
npm start
open vs project in VS code: code .
npm install -g @angular/cli@9.1.11
npm uninstall -g @angular/cli
Angular CLI Commands : https://www.c-sharpcorner.com/article/quick-preview-angular-cli-commands/
ng generate module/component/service/class name
ng generate component login //ng generate component register
ng g c login
ng generate module user-auth //1 file
ng g c user-auth/sign-in // component under module
ng g class Dummy
ng g service api-service
ng g service user-auth/test-service //service under module
ng build --prod //ng build --dev
ngOnInit :
Executes after the constructor and after ngOnChange hook for the first time. It is most commonly used for component initialisation and retrieving data from a database
<form (submit)="onSubmit()"> <input [(ngModel)]="playerName"> </form> let playerName: string; onSubmit() { return this.playerName; }
Interview: https://www.youtube.com/watch?v=-jeoyDJDsSM
https://youtube.com/shorts/5Ac2qZHrApU?si=_X-G7pJFHiZoD-s7 https://www.youtube.com/watch?v=f6pSsex87oU