Setup Pre-requisites:
Required:
- node.js - Development Environment
- npm - Package Manager
Optional:
- git - Version Control
- vscode - Text Editor (with git and console integration)
Angular CLI Setup:
Test pre-reqs and Install:
node -v
npm -v
If both thse conditions are met, install Angular CLI
npm install -g @angular/cli
Test installation:
Create test project:
ng new test-app
- say no to adding routing and use default (CSS) stylesheet for this example
Change working directory to newly created app directory:
cd test-app
Serve app to default web browser:
ng serve --open
- this opens the app in the browser at the local address:
http://localhost:4200/
- the default port is 4200
ng serve --port 7777 --open
- use this to open atÂ
http://localhost:7777/
- or use a custom port of your choice
This should render the default Angular App, if everything is setup correctly.
JavaScript Concepts:
TypeScript Concepts:
Angular Concepts: