Preparing for the next Development Tool
Magic XPA 4
Node.js for Angular
 We need to install Node.js to develop Angular Apps
 Angular written in Typescript
 Browser does not understand Typescript (.ts), than we
need to use Node and NPM to compile them into
JavaScript (.js)
 Visual Studio Code recommended as code editor
Node.js Setup
Visual Studio Code Setup
Install and Run Angular
 In command prompt
 npm install –g @angular/cli
 Create a new Angular application
 ng new my-app
 Run Angular application
 cd my-app
 ng serve
 http://localhost:4200 in browser
 Open Angular application in VS Code, using another
command
 cd my-app
 code .
My-app Angular application
Visual Studio Code – My-app
app.component.css
app.component.html
app.component.spec.ts
app.component.ts
app.module.ts
Change app.component.css
ng serve
localhost:4200 with new css

Learn Google's Angular