Please enable JavaScript.
Coggle requires JavaScript to display documents.
Angular (Different version of Angular (Angular 1 (Completely diff from…
Angular
Is a
Javascript Framework
Allow to create
Single Page Application
Benefits:
No buffer experience by users
Only content include html and css changes
Only single page of the application involve
Why is
SPA better than MPA
loading and buffer occur
Effect: Not efficient
MPA connect to servers and communicate back and forth
Different version of Angular
Angular 2
Angular 6
Angular 7
Angular 1
Completely diff from Angular 2,6,7
Known as AngularJS
Complete rewrite to Angular 2,6,7
Important about Installation
Issue encounter
Installation of CLI
/
New Angular Project Setup
Latest version
NodeJS
Uninstall
previous version
Download
latest version
npm
Update
npm
npm install -g npm
CLI
Update
CLI
npm uninstall -g angular-cli @ angular/cli
npm cache clean
npm install -g @ angular/cli
Get EADDR
, address already in use
Using another
port
ng serve --port
or quit the current in use port
Why
NgModel
appear to be issue when run on browser
Because it should be added in the
app.module.ts
section
Module is represent in separate section
By importing the
FormsModule
from angular/forms
Don't forget about the
imports
section below, in the
app.module.ts
The form can be use on the browser, act as a
textbox input