Angular Help

https://nodejs.org/en/download/



Publish : ng build is the command you use when you're ready to build your application and deploy it.
  1. 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:\>node -v

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



















Comments

Popular posts from this blog

Travel RESUME CV

PTE