Basic familiarity with HTML, CSS and JavaScript is must.
- HTML - Markup
- CSS - Style, Formates
- JavaScript - Behaviour, Click, Validations
- TypeScript basics - Advanced JS features (Class, Arrow Function, Spread Operator)
- Text Editor / Visual Text Editors
In this section, we will learn how to set up a local development environment to start developing Angular apps.
Node
, (website: https://nodejs.org/en)NPM
, (Node Package Manager - comes inbuilt with Node)Angular CLI = Command Line Interface
, Angular CLI (Command Line Interface) for angular (website: https://cli.angular.io/),- it allows the developer to build/generate building blocks of angular application like component, services, routings, modules, etc. with best practices quicker and easier)
Text Editor
- Visual Studio Code / Visual Studio Code Insiders (website: https://code.visualstudio.com)
- Sublime Text,
- Atom,
- Brackets etc.
- Download and Install node (node comes with npm) (website: https://nodejs.org/en)
Image - Nodejs website - https://nodejs.org/en
- After installation check version of node and npm by command:
node -v
/node --version
ORnpm -v
/npm --version
- Install Angular CLI (website https://cli.angular.io/) by using command:
npm install -g @angular/cli
(it will install Angular CLI globally)
Image - Angular CLI website - https://cli.angular.io/
- After installation check version of angular CLI by using the command:
ng -v
ORng --version
, you can also verify angular CLI installation by command:ng
ORng --help
- Create a new app with angular CLI by using syntax:
ng new project/appName
example: command:ng new angular6-1-demo
- Go inside the project/app directory, command:
cd angular6-1-demo
- Build and run Angular App, command:
ng serve
ORng serve -o
ORng serve --open
- Go to the browser and launch/check Angular App by entering the web address:
localhost:4200
- to get Node version, type command:
node -v
ORnode --version
- to get NPM version, type command:
npm -v
ORnpm --version
- to install Angular CLI, type command:
npm install -g @angular/cli
- to get angular CLI version, type command:
ng -v
ORng --version
(this command displays details of a node, npm, and other angular package versions) - to get various angular CLI commands, type command:
ng
ORng --help
- If using Visual Studio Code / Insiders, open Command panel/terminal from menu: View -> Terminal (shortcut key is
CTRL + BackTick
ORCOMMAND + J
) - To create a new app with angular CLI by using syntax:
ng new project/appName
example: command:ng new angular6-1-demo
- Go inside the project/app directory, command:
cd angular6-1-demo OR cd appName
- To Build and run Angular App, command:
ng serve / npm start
ORng serve -o
ORng serve --open
- To change port from 4200 to other port - type command:
ng serve --port 5000
- To check the application in browser type path/url:
localhost:4200 / 5000
- Clone or Download the project/app from Github or any other sources
- If using Visual Studio Code / Insiders, open Command panel/terminal from menu: View -> Terminal (shortcut key is
CTRL + BackTick
ORCOMMAND + J
) - Go inside the project/app directory, command:
cd _examples-angular6-1-demo OR cd appName
- Run command:
npm install
to install project/app dependencies(node_modules)
- To Build and run Angular App, command:
ng serve / npm start
ORng serve -o
ORng serve --open
- To change port from 4200 to other port - type command:
ng serve --port 5000
- To check the application in browser type path/url:
localhost:4200 / 5000
- Implementation of CSS for Admin dashboard look.
- Implementation of routings.
- run
npm start
orng serve
- get following dashboard.