What is and Why Angular (Angular 2 and Angular 4)?
From this point on, whenever we say “Angular 2” or “Angular”, we also include “Angular 4”
Angular CLI
Angular 4 improvements over Angular 2
What is and Why Angular?
What is Angular?
Angular is a development platform for building “mobile” and “desktop” applications
Angular was designed for mobile from the ground up
Angular, like React and other modern frameworks, can leverage performance gains by rendering HTML on the server or even in a web worker
Angular is platform agnostic
Not coupled with DOM or even HTML
Can be used for non-browser platforms
Angular 1 vs Angular 2
Angular 2 is rewritten from scratch
Using different language (TypeScript over JavaScript)
Introduced new building blocks (component oriented)
Incompatible with Angular 1
Why these drastic change (from Angular 1)?
Web has evolved a lot (since Angular 1 was introduced in 2009)
The applications are becoming more complex and demanding
New technologies were introduced (WebWorkers, Reactive extensions (Rx), etc
...
Why Angular 2?
Angular is easier to program
Familiar language features, Type-checking, IDE support, Easier to read and write code, etc
Streamlined architecture over Angular 1
Component oriented
Higher performance
Mobile-friendly
Angular CLI
Command line tool for automating your development workflow
It allows you to
create a new Angular application (ng new hello-app)
run a development server with LiveReload support to preview your application during development (ng serve)
add features to your existing Angular application (ng generate ...)
run your application’s unit tests (ng test)
run your application’s end-to-end (E2E) tests (ng e2e)
build your application for deployment to production (ng build)
deploy your application to a server
Angular CLI installation
Install Node.js (if it has not been installed already)
Before you can use Angular CLI, you must have Node.js 4.0.0 and npm 3.0.0 or higher installed on your system (npm gets installed as part of Node installation)
Very informative course, gets me well on the way to developing Angular 2 applications. Typescript really Rocks!
Todd Johnston
I appreciate the introduction of great tools--editor and web sites, for example--and the use of up-to-date technologies, in this case Angular 2.
Bill Yoder
Excellent presentation and labs exercises on Angular2!
Horace Ho
I've studied Angular1/2 for the last 6mos. This course was well-done. Like knowing why decisions were made from Angular. Felt I received a firm overall understanding.